[LLVMbugs] [Bug 394] [llvm-gcc] ubyte/long getelementptr indices still generated

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Jul 6 21:07:57 PDT 2004


markus at oberhumer.com changed:

           What    |Removed                     |Added
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |

------- Additional Comments From markus at oberhumer.com  2004-07-06 23:07 -------

many thanks for this fix. I'm currently still re-compiling, but testing the
webcompiler with the new version crashes:

char x[] = "aaa";
char *foo() { return &x[1]; }

cc1: ../../gcc-3.4-cvs/gcc/llvm-representation.c:597: create_gep3: Assertion
`Op1->Ty == LongTy && "First GEP index must be long type!"' failed.
/tmp/webcompile/_1239_0.c: In function `foo':

/tmp/webcompile/_1239_0.c:2: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://llvm.cs.uiuc.edu> for instructions.


------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

More information about the llvm-bugs mailing list