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

Eli Friedman eli.friedman at gmail.com
Fri May 16 12:22:12 PDT 2008


On Fri, May 16, 2008 at 12:18 PM, Chris Lattner <clattner at apple.com> wrote:
>> Testcase (currently crashes with clang -emit-llvm):
>> int a();
>> int b(int);
>> int c() {return 1 ? a : b;}
>
> Should sema be inserting an implicit cast to the common type?

I suppose that's a possibility; which way are users outside of codegen
likely to prefer?

-Eli



More information about the cfe-dev mailing list