-
Notifications
You must be signed in to change notification settings - Fork 15.2k
Description
Bugzilla Link | 3367 |
Resolution | FIXED |
Resolved on | Apr 24, 2010 07:06 |
Version | 2.4 |
OS | Windows XP |
Depends On | llvm/llvm-bugzilla-archive#3601 |
Attachments | bitcode file, suggested fix |
Reporter | LLVM Bugzilla Contributor |
CC | @jayfoad,@nlewycky |
Extended Description
With the attached bitcode file I get:
$ opt -f -o /dev/null stripped.bc -inline -prune-eh
opt: /home/foad/svn/llvm-project/llvm/trunk/lib/Analysis/IPA/CallGraph.cpp:264: void llvm::CallGraphNode::removeCallEdgeFor(llvm::CallSite): Assertion `i && "Cannot find callsite to remove!"' failed.
/home/foad/llvm/objdir-svn/Debug/bin/opt[0x86d2b66]
/home/foad/llvm/objdir-svn/Debug/bin/opt[0x86d2c96]
[0xb7fa5400]
/lib/i686/cmov/libc.so.6(abort+0x188)[0xb7d26018]
/lib/i686/cmov/libc.so.6(__assert_fail+0xee)[0xb7d1d5be]
/home/foad/llvm/objdir-svn/Debug/bin/opt(_ZN4llvm13CallGraphNode17removeCallEdgeForENS_8CallSiteE+0x41)[0x8561d41]
/home/foad/llvm/objdir-svn/Debug/bin/opt[0x83f8e31]
/home/foad/llvm/objdir-svn/Debug/bin/opt[0x83f9239]
/home/foad/llvm/objdir-svn/Debug/bin/opt[0x83f9506]
/home/foad/llvm/objdir-svn/Debug/bin/opt(_ZN105_GLOBAL__N__home_foad_svn_llvm_project_llvm_trunk_lib_Analysis_IPA_CallGraphSCCPass.cpp_00000000_EE43971E13CGPassManager11runOnModuleERN4llvm6ModuleE+0x161)[0x8564bb7]
/home/foad/llvm/objdir-svn/Debug/bin/opt(_ZN4llvm13MPPassManager11runOnModuleERNS_6ModuleE+0xcd)[0x865f461]
/home/foad/llvm/objdir-svn/Debug/bin/opt(_ZN4llvm15PassManagerImpl3runERNS_6ModuleE+0x74)[0x8660df6]
/home/foad/llvm/objdir-svn/Debug/bin/opt(_ZN4llvm11PassManager3runERNS_6ModuleE+0x1b)[0x8660e4d]
/home/foad/llvm/objdir-svn/Debug/bin/opt(main+0x11e3)[0x839ce81]
/lib/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0xb7d0f455]
/home/foad/llvm/objdir-svn/Debug/bin/opt(__gxx_personality_v0+0x355)[0x838d361]
Aborted
This happens with both the 2.4 release and a fairly recent head of svn build. I'm using Linux/x86.