[cfe-dev] Crash in codegen of switch with overflow

Eli Friedman eli.friedman at gmail.com
Sat Jan 12 18:19:09 PST 2008


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?)

-Eli



More information about the cfe-dev mailing list