LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 1384 - instcombine not handling [0 x type]
Summary: instcombine not handling [0 x type]
Status: RESOLVED FIXED
Alias: None
Product: libraries
Classification: Unclassified
Component: Scalar Optimizations (show other bugs)
Version: trunk
Hardware: Macintosh MacOS X
: P normal
Assignee: Chris Lattner
URL:
Keywords: compile-fail
Depends on:
Blocks:
 
Reported: 2007-05-04 19:09 PDT by Dale Johannesen
Modified: 2010-02-22 12:47 PST (History)
1 user (show)

See Also:
Fixed By Commit(s):


Attachments
File that crashes (719 bytes, application/octet-stream)
2007-05-04 19:10 PDT, Dale Johannesen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dale Johannesen 2007-05-04 19:09:17 PDT
Attached file crashes with opt -instcombine.  Somebody's not handling 0-length arrays right but I'm not 
sure who.
Comment 1 Dale Johannesen 2007-05-04 19:10:55 PDT
Created attachment 823 [details]
File that crashes
Comment 2 Chris Lattner 2007-05-04 21:00:11 PDT
Fixed.  Testcase here: Instcombine/2007-05-04-Crash.ll 

Patch here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070430/049137.html

-Chris