[Patch][Clang/CodeGen] Fixes invalid shufflevector instruction

Pflanzer, Moritz moritz.pflanzer14 at imperial.ac.uk
Thu Jun 18 13:52:37 PDT 2015


Hello,

The attached patch fixes bug 23800 ( https://llvm.org/bugs/show_bug.cgi?id=23800 ).
There existed a case where the index operand from extractelement was directly used to create a shufflevector mask. Since the index can be of any integral type but the mask must only contain 32 bit integers a 64 bit index operand led to an assertion error later on.

I would appreciate if someone could review and eventually apply my changes.

Best regards,

Moritz

-------------- next part --------------
A non-text attachment was scrubbed...
Name: VisitInitListExpr.patch
Type: application/octet-stream
Size: 1035 bytes
Desc: VisitInitListExpr.patch
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150618/3c5c5cb0/attachment.obj>


More information about the cfe-commits mailing list