Bugzilla – Bug 62
C backend fails on constant cast expr to ptr-to-anonymous struct
Last modified: 2003-10-28 17:11:02
You need to log in before you can comment on or make changes to this bug.
llvm/test/Regression/CBackend/2003-10-28-CastToPtrToStruct.ll This tries to getelementptr on a constant cast expression that casts to pointer-to-unnamed-struct type. The resulting C Writer code apparently tries to do ({ int field0; int field1; }) as a cast, which is not going to work.
It looks like this bug is the fault of the "findusedtypes" pass.
Here's the fix: http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20031027/008925.html http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20031027/008926.html