[cfe-dev] Crash in codegen of switch with overflow
Chris Lattner
clattner at apple.com
Wed Jan 16 11:17:45 PST 2008
On Jan 12, 2008, at 6:19 PM, Eli Friedman wrote:
> switch (1) {
> case 111111111111111111111111111111111111111:
> ;
> }
>
> generates invalid bitcode with clang -emit-llvm. Looks like codegen
> isn't using the truncated value that sema is calculating. (Maybe we
> should be putting an ImplicitCastExpr in here?)
Yep, you're right. Fixed:
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20080114/003814.html
Thanks!
-Chris
More information about the cfe-dev
mailing list