When an aggregate contains an opaque type its size cannot be
determined. This triggers an "Invalid GetElementPtrInst indices for type" assert
in function checkGEPType. The patch suppresses the conversion in this case.
Details
Details
- Reviewers
 majnemer llvm-commits 
Diff Detail
Diff Detail
Event Timeline
Comment Actions
LGTM
| test/Transforms/InstCombine/opaque.ll | ||
|---|---|---|
| 1 | I'd prefer if we made this a FileCheck test even though the input should approximately be it's output. However, I don't feel particularly strongly about it.  | |
I'd prefer if we made this a FileCheck test even though the input should approximately be it's output. However, I don't feel particularly strongly about it.