[cfe-commits] [PATCH] Crash when constant folding switch statements (Bug 11656)

Aaron Ballman aaron at aaronballman.com
Sun Jan 15 18:24:22 PST 2012

On Sun, Jan 15, 2012 at 6:04 PM, David Blaikie <dblaikie at gmail.com> wrote:
> Test case would be nice - and, naively: is there any reason this
> wouldn't be fixed up by the constant-folding code? (perhaps it's
> better the way you've fixed it, but I am curious - leaving cases
> without switches around when constant folding seems a bit suspect/odd)

Now, with test case.  As for whether this could be fixed up in the
constant folding code: I didn't see a particularly clean way to do it
aside from this.  But I'm all ears if someone has a suggestion!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: switch_folding.patch
Type: application/octet-stream
Size: 1374 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120115/e3e47bee/attachment.obj>

More information about the cfe-commits mailing list