[LLVMbugs] [Bug 13903] New: llvm.donothing intrinsic causing crash in basic callgraph construction due to use in an invoke

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Sep 23 08:43:55 PDT 2012


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

             Bug #: 13903
           Summary: llvm.donothing intrinsic causing crash in basic
                    callgraph construction due to use in an invoke
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: baldrick at free.fr
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Created attachment 9250
  --> http://llvm.org/bugs/attachment.cgi?id=9250
testcase .ll

$ opt -inline -disable-output cfg.ll
opt: llvm/include/llvm/Analysis/CallGraph.h:264: void
llvm::CallGraphNode::addCalledFunction(llvm::CallSite, llvm::CallGraphNode*):
Assertion `!CS.getInstruction() || !CS.getCalledFunction() ||
!CS.getCalledFunction()->isIntrinsic()' failed.

One up the call stack the code is conditioned on:

  if (CS && !isa<IntrinsicInst>(II)) { ...

Probably isa<IntrinsicInst> returns false for invoke of an intrinsic.

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