[cfe-dev] Possible fix for codegen bug with cond ? func1 : func2

Eli Friedman eli.friedman at gmail.com
Thu May 15 14:57:51 PDT 2008


Potential patch attached.

Testcase (currently crashes with clang -emit-llvm):
int a();
int b(int);
int c() {return 1 ? a : b;}

Anyone have any better suggestions for how to fix this?

-Eli
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: tttt.txt
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20080515/429547d2/attachment.txt>


More information about the cfe-dev mailing list