Commit 3d0415fd authored by Kevin Modzelewski's avatar Kevin Modzelewski

Merge pull request #217 from undingen/llvm_assert

Fix assert in very verbose mode
parents baa26fab 562f96e0
......@@ -222,7 +222,7 @@ public:
}
AliasResult alias(const Location& LocA, const Location& LocB) override {
if (VERBOSITY("opt.aa") >= 2 && depth == 0) {
if (VERBOSITY("opt.aa") >= 2 && depth == 0 && isa<Instruction>(LocA.Ptr)) {
cast<Instruction>(LocA.Ptr)->getParent()->dump();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment