correctly. This helps with catching problems caused by IRBuilder abuse
such as the one fixed in CFE r222487.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222488
91177308-0d34-0410-b5e6-
96231b3b80d8
}
}
}
+
+ // Check that all instructions have their parent pointers set up correctly.
+ for (auto &I: BB)
+ Assert(I.getParent() == &BB, "Instruction has bogus parent pointer!");
}
void Verifier::visitTerminatorInst(TerminatorInst &I) {