[LLVMbugs] [Bug 11623] New: "GEP is not of right type for indices!" (again)

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Dec 20 01:45:15 PST 2011


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

             Bug #: 11623
           Summary: "GEP is not of right type for indices!" (again)
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: llvm-link
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: max at duempel.org
                CC: llvmbugs at cs.uiuc.edu
        Depends on: 11519
    Classification: Unclassified


I found another way to trigger bug 11519 with svn trunk 146960:

touch bar.ll && clang++ -std=c++0x -emit-llvm -c -o foo.bc foo.cxx && llvm-link
-o output.bc bar.ll  foo.bc

Error message:GEP is not of right type for indices!
  %coerce.dive = getelementptr %struct.Foo* %agg.tmp, i32 0, i32 0
 %"type 0x2493a60"*Instruction does not dominate all uses!
  %coerce.dive = getelementptr %struct.Foo* %agg.tmp, i32 0, i32 0
  %3 = load %"struct.Foo::Dummy1"** %coerce.dive
Instruction does not dominate all uses!
  %3 = load %"struct.Foo::Dummy1"** %coerce.dive
  %call2 = call i64 @_ZNKSt4hashI3FooEclES0_(%"struct.std::hash"* %_M_h1,
%"struct.Foo::Dummy1"* %3)
Instruction does not dominate all uses!
  %call2 = call i64 @_ZNKSt4hashI3FooEclES0_(%"struct.std::hash"* %_M_h1,
%"struct.Foo::Dummy1"* %3)
  %call3 = call i64
@_ZNKSt8__detail18_Mod_range_hashingclEmm(%"struct.std::__detail::_Mod_range_hashing"*
%_M_h2, i64 %call2, i64 %4)
Instruction does not dominate all uses!
  %call3 = call i64
@_ZNKSt8__detail18_Mod_range_hashingclEmm(%"struct.std::__detail::_Mod_range_hashing"*
%_M_h2, i64 %call2, i64 %4)
  ret i64 %call3
Broken module found, compilation aborted!
0  llvm-link       0x000000000057591f
1  llvm-link       0x0000000000575e39
2  libpthread.so.0 0x00007f7c94431030
3  libc.so.6       0x00007f7c9372e405 gsignal + 53
4  libc.so.6       0x00007f7c93731680 abort + 384
5  llvm-link       0x000000000052ec89
6  llvm-link       0x000000000052dcc6
7  llvm-link       0x000000000051a67f
8  llvm-link       0x000000000051a90b
9  llvm-link       0x000000000051aa5a
10 llvm-link       0x000000000051b041
11 llvm-link       0x000000000051b54a
12 llvm-link       0x000000000052d48f
13 llvm-link       0x00000000004066eb
14 libc.so.6       0x00007f7c9371aead __libc_start_main + 253
15 llvm-link       0x0000000000405ff9
Stack dump:
0.      Program arguments: llvm-link -o output.bc bar.ll foo.bc 
1.      Running pass 'Function Pass Manager' on module 'bar.ll'.
2.      Running pass 'Module Verifier' on function
'@_ZNKSt8__detail15_Hash_code_baseI3FooSt4pairIKS1_PN3BarILi2EE6Dummy2EESt10_Select1stIS8_ESt8equal_toIS1_ESt4hashIS1_ENS_18_Mod_range_hashingENS_20_Default_ranged_hashELb0EE15_M_bucket_indexEPKNS_10_Hash_nodeIS8_Lb0EEEm'
Aborted

-- 
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