[LLVMbugs] [Bug 6537] New: Assertion failure in llvm::checkType: Ty && "Invalid GetElementPtrInst indices for type!"

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Mar 7 14:50:38 PST 2010


http://llvm.org/bugs/show_bug.cgi?id=6537

           Summary: Assertion failure in llvm::checkType: Ty && "Invalid
                    GetElementPtrInst indices for type!"
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: josh at joshtriplett.org
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=4420)
 --> (http://llvm.org/bugs/attachment.cgi?id=4420)
Preprocessed source to demonstrate assertion failure

I tried clang on one of my projects, and got an assertion failure.  I
preprocessed the source and reduced to the minimal command line needed:

~/src/psas/event-driven-fc$ /usr/bin/../lib/clang/1.0/clang-cc -S -o /dev/null
sim.i
clang-cc:
/home/arthur/clang/clang-2.6/llvm-2.6/include/llvm/Instructions.h:368: const
llvm::Type* llvm::checkType(const llvm::Type*): Assertion `Ty && "Invalid
GetElementPtrInst indices for type!"' failed.
0   clang-cc        0x000000000124122f
1   clang-cc        0x0000000001241a3d
2   libpthread.so.0 0x00007f7ba477b990
3   libc.so.6       0x00007f7ba3892f45 gsignal + 53
4   libc.so.6       0x00007f7ba3895d80 abort + 384
5   libc.so.6       0x00007f7ba388c08a __assert_fail + 234
6   clang-cc        0x00000000004f111c
7   clang-cc        0x00000000004f4027
8   clang-cc        0x00000000004fc9da
9   clang-cc        0x00000000004fdacd
10  clang-cc        0x00000000004fe402
11  clang-cc        0x00000000004f1666
12  clang-cc        0x00000000004fb525
13  clang-cc        0x00000000004fca6e
14  clang-cc        0x00000000004fdacd
15  clang-cc        0x00000000004fe402
16  clang-cc        0x00000000004f1666
17  clang-cc        0x00000000004fb525
18  clang-cc        0x00000000004fc89f
19  clang-cc        0x00000000004fdacd
20  clang-cc        0x00000000004fe402
21  clang-cc        0x00000000004f1666
22  clang-cc        0x00000000004f6858
23  clang-cc        0x00000000004f8121
24  clang-cc        0x00000000004fbf34
25  clang-cc        0x00000000004fdaed
26  clang-cc        0x00000000004fe402
27  clang-cc        0x0000000000543a20
28  clang-cc        0x0000000000549020
29  clang-cc        0x000000000054935b
30  clang-cc        0x0000000000546e8a
31  clang-cc        0x000000000054e5da
32  clang-cc        0x00000000004c750c
33  clang-cc        0x00000000004c7c35
34  clang-cc        0x00000000004c7d98
35  clang-cc        0x00000000004c8091
36  clang-cc        0x0000000000423bc7
37  clang-cc        0x000000000060ae04
38  clang-cc        0x000000000040dc0a
39  clang-cc        0x000000000041103e main + 6014
40  libc.so.6       0x00007f7ba387fabd __libc_start_main + 253
41  clang-cc        0x000000000040b3f9
Stack dump:
0.    Program arguments: /usr/bin/../lib/clang/1.0/clang-cc -S -o /dev/null
sim.i 
1.    <eof> parser at end of file
2.    Per-file LLVM IR generation
3.    sim.c:181:1: LLVM IR generation of compound statement ('{}')
Aborted


Preprocessed source attached.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list