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
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
Possibly Parallel Threads
- [LLVMdev] Accessing an empty machine function before instruction selection?
- [LLVMdev] Problem with generating Machine function analysis pass
- [LLVMdev] Crash in opt.cpp:739 when loading custom pass (only on system-wide debug install of llvm)
- [LLVMdev] "Cannot call createPass on PassInfo without default ctor!"
- uninitialized values in Attributes.cpp