Hello everyone,<br clear="all"><br>Till now I have succesfully running passes using RegisterPass template. I have encountered a segfault in my pass.<br><br>     Assertion `AA && "AA didn't call InitializeAliasAnalysis in its run method!"' failed.<br>
<br>Then, I tried to use INITIALIZE_PASS_XXXX or INITIALIZE_AG_PASS template, together with `*llvm::createMyMemDepPrinter()` and `initializeMemDepPrinterPass(*PassRegistry::getPassRegistry())` methods. Therefore, I got two compilation errors:<br>
<br>    MyMemDepPrinter.cpp:101:1: error: ‘void llvm::initializeMyMemDepPrinterPass(llvm::PassRegistry&)’ should have been declared inside ‘llvm’<br>    MyMemDepPrinter.cpp:104:43: error: ‘llvm::FunctionPass* llvm::createMyMemDepPrinter()’ should have been declared inside ‘llvm’<br>
<br>So I added `(void) llvm::createMyMemDepPrinter();`to LinkAllPasses.h. `initializeMyMemDepPrinterPass` I don't know yet where to add (maybe in a Analysis.cpp file).<br><br>However, I don't know how to compile only those modified files and not the entire LLVM. I don't think that is such a good idea to compile "by hand" using clang. <br>
<br>Can you tell me if this is the way I can solve the segfault and how do I do it? <br><br>