[LLVMdev] Problemo: createTailDuplicationPass

Bob Wilson bob.wilson at apple.com
Thu Nov 26 13:16:06 PST 2009


I will rename it.  Thanks for reporting the problem.

On Nov 26, 2009, at 12:32 AM, Stephan Reiter wrote:

> Good morning!
> 
> After updating and recompiling my copy of the LLVM trunk I noticed
> that the line "_passManager.add(llvm::createTailDuplicationPass());"
> in my code fails with the following assertion:
> 
> Assertion failed: NormalCtor && "Cannot call createPass on PassInfo
> without default ctor!", file
> D:\Workspace\llvmtrunk\include\llvm/PassSupport.h, line 111
> 
> This behavior was introduced in revision 89904: Both,
> lib/CodeGen/tailDuplication.cpp and lib/Transforms/TailDuplication.cpp
> export a function with the signature
> llvm::createTailDuplicationPass(). In my case the linker picks the
> wrong one - the CodeGen version instead of the Transforms version -,
> which causes the assertion.
> 
> Hope this helps,
> Stephan
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev




More information about the llvm-dev mailing list