[LLVMdev] Problemo: createTailDuplicationPass
Stephan Reiter
stephan.reiter at gmail.com
Thu Nov 26 00:32:30 PST 2009
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
More information about the llvm-dev
mailing list