<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Please file a bug. Thanks.<div><br class="webkit-block-placeholder"></div><div>Evan<br><div><br><div><div>On Feb 1, 2008, at 12:03 PM, Ben Mayne wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"> <div> <!-- Converted from text/plain format --><p><font size="2">I'm having an issue with the CodeExtractor.  When I try to extract the lone basic block from the following function, I get an assertion error.<br> <br> <br> define i32 @test(i32 %x) {<br>         %tmp = call i32 @test3( i32 %x )                ; <i32> [#uses=1]<br>         ret i32 %tmp<br> }<br> <br> The assertion error is:<br> <br> lli: Dominators.cpp:71: void llvm::DominatorTree::splitBlock(llvm::BasicBlock*): Assertion `NewBB->getTerminator()->getNumSuccessors() == 1 && "NewBB should have a single successor!"' failed.<br> lli((anonymous namespace)::PrintStackTrace()+0x22)[0x87f7cb8]<br> lli((anonymous namespace)::SignalHandler(int)+0x110)[0x87f7f7c]<br> /lib/tls/libc.so.6[0x59fa48]<br> /lib/tls/libc.so.6(abort+0x129)[0x5a1319]<br> /lib/tls/libc.so.6(__assert_fail+0x101)[0x598f41]<br> lli(llvm::DominatorTree::splitBlock(llvm::BasicBlock*)+0xb7)[0x874edff]<br> lli[0x86b2672]<br> lli[0x86b2b15]<br> lli(llvm::ExtractCodeRegion(llvm::DominatorTree&, std::vector<llvm::BasicBlock*, std::allocator<llvm::BasicBlock*> > const&, bool)+0x39)[0x86b321d]<br> <br> I just updated to llvm-2.1 from llvm-1.9 where I was never having this problem.  I don't understand exactly what it's complaining about (maybe the fact that the terminator instruction is a 'ret' instruction?, but I don't see why it couldn't handle this kind of a block).<br> <br> Thanks,<br> Ben Mayne<br> <br> </font> </p> </div> _______________________________________________<br>LLVM Developers mailing list<br>LLVMdev@cs.uiuc.edu         <a href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br></blockquote></div><br></div></div></body></html>