Error in registration of Pass

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::PassRegistrar::RegisterPass(llvm::PassInfo&): Assertion `Inserted && “Pass registered multiple times!”’ failed.

Aborted (core dumped)

Thanks

Nipun

Nipun,

In your pass you've static RegisterPass<PASSNAME>XYZ("...", "...");
It seems this is repeated or the name XYZ is reused.

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