Hi , I get the following error when I try and load a certain pass I have made. Can anyone help me out? What could be the problem? And how can I remove it? opt: Pass.cpp:147: void<unnamed>::PassRegistrar::RegisterPass(llvm::PassInfo&): Assertion `Inserted && "Pass registered multiple times!"' failed. Aborted (core dumped) Thanks Nipun -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20081030/d328ad37/attachment.html>
Nipun, In your pass you've static RegisterPass<PASSNAME>XYZ("...", "..."); It seems this is repeated or the name XYZ is reused. On Oct 30, 2008, at 8:46 AM, Nipun Arora wrote:> Hi , > > I get the following error when I try and load a certain pass I have > made. Can anyone help me out? What could be the problem? And how > can I remove it? > > opt: Pass.cpp:147: > void<unnamed>::PassRegistrar::RegisterPass(llvm::PassInfo&): > Assertion `Inserted && "Pass registered multiple times!"' failed. > Aborted (core dumped) > > Thanks > Nipun > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev- Devang
Nipun Arora wrote:> I get the following error when I try and load a certain pass I have > made. Can anyone help me out? What could be the problem? And how can I > remove it?Hi Nipun. We actually just had this discussion on the mailing list. Please see this thread: http://lists.cs.uiuc.edu/pipermail/llvmdev/2008-October/017994.html It dealt with a specific case (trying to use the ExecutionEngine from an optimization pass), but the mechanism, debugging and advise should all apply for you too. Nick Lewycky> > > > opt: Pass.cpp:147: > void<unnamed>::PassRegistrar::RegisterPass(llvm::PassInfo&): Assertion > `Inserted && "Pass registered multiple times!"' failed. > > Aborted (core dumped) > > > > Thanks > > Nipun > > > ------------------------------------------------------------------------ > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev