[LLVMbugs] [Bug 8415] New: llvm-ld fails with "Called function is not pointer to function type!"

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Oct 19 03:27:28 PDT 2010


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

           Summary: llvm-ld fails with "Called function is not pointer to
                    function type!"
           Product: new-bugs
           Version: 2.8
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: richard-llvm at metafoo.co.uk
                CC: llvmbugs at cs.uiuc.edu


I'm linking a large (1MLoC, 209MB of bitcode) C++ program with LTO, and I get
the following failure:

  0  libLLVM-2.8rc.so 0xf7b87da9
Stack dump:
Called function is not pointer to function type!
  %97 = call %41 <badref>(%"class.MyType"* %96)
Instruction does not dominate all uses!
  %97 = call %41 <badref>(%"class.MyType"* %96)
  %98 = icmp eq %10* %97, null
Instruction does not dominate all uses!
  %98 = icmp eq %10* %97, null
  br i1 %98, label %99, label %164
Called function is not pointer to function type!
  %249 = call %41 <badref>(%"class.MyType"* %96)
Instruction does not dominate all uses!
  %249 = call %41 <badref>(%"class.MyType"* %96)
  %250 = call fastcc zeroext i1
@_ZN6Worker10GoInternalEP6MyType(%"class.Worker"* %this, %10* %249)
Called function is not pointer to function type!
  %251 = call %41 <badref>(%"class.MyType"* %96)
Instruction does not dominate all uses!
  %251 = call %41 <badref>(%"class.MyType"* %96)
  %252 = call fastcc zeroext i1 @_ZN6Worker2GoEP6MyType(%"class.Worker"* %this,
%10* %251)
Broken module found, compilation aborted!

I'm working on producing a reduced testcase.

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