Displaying 1 result from an estimated 1 matches for "createbackendpointerpass".
2011 May 30
1
[LLVMdev] Segfault when trying to schedule custom ImmutablePass
...;ve searched the mailing list archives, but didn't find anything
related. Here's the code that segfaults:
llvm::PassManager canonicalize;
canonicalize.add(llvm::createIndVarSimplifyPass());
canonicalize.add(gla_llvm::createCanonicalizeCFGPass());
canonicalize.add(gla_llvm::createBackEndPointerPass(backEnd));
canonicalize.add(gla_llvm::createCanonicalizeInstsPass());
canonicalize.run(*module);
where BackEndPointer is the Immutable Pass. This segfaults when
ScalarEvolution tries to get TargetData if available. Below is the
complete stack trace:
#0 0x083ae6fd in std::vector<llvm::...