Hello,<br><br>Following the tutorial for writing a pass, I found the next problem.<br><br>*****************************<br>:~/llvm/test$ opt -load ../llvm/Debug/lib/mypass.so -mypass < hello.bc > /dev/null<br>opt: Pass.cpp:151: void<unnamed>::PassRegistrar::RegisterPass(const llvm::PassInfo&): Assertion `Inserted && "Pass registered multiple times!"' failed.<br>
Aborted<br>*****************************<br>
<br>I just <copy> and then <paste> the code that appears in the web page, and follow the instructions to run the pass. There is something missed, something that is not in the web page [<a href="http://llvm.org/docs/WritingAnLLVMPass.html#quickstart">http://llvm.org/docs/WritingAnLLVMPass.html#quickstart</a>].<br>
<br>Thanks in advance.<br>-- <br>Juan Carlos<br>