[cfe-dev] Union codegen abort
Devang Patel
dpatel at apple.com
Tue Dec 11 13:35:58 PST 2007
On Dec 10, 2007, at 6:36 PM, Keith Bauer wrote:
> Found this while looking for one of the codegen asserts I hit:
>
>
> union U { unsigned a; float b; };
> float get_b(union U *u) { return u->b; }
>
>
> CookieJar:Desktop keith$ clang -emit-llvm union.c
> Function return type does not match operand type of return inst!
> Broken module found, compilation aborted!
Fixed.
http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20071210/003302.html
Thanks for the report.
-
Devang
More information about the cfe-dev
mailing list