Fixes undominating relaxed loads issue
[oota-llvm.git] / lib / IR / Verifier.cpp
index ba6bbb1f637ff586fda4ae93a149000b0909d1c3..c8f99c5b4ccbe7143236c287772b1778816d7701 100644 (file)
@@ -3355,7 +3355,7 @@ void Verifier::verifyDominatesUse(Instruction &I, unsigned i) {
 
   const Use &U = I.getOperandUse(i);
   if (!(InstsInThisBlock.count(Op) || DT.dominates(Op, U))) {
-    i = *((unsigned*) nullptr);
+    dbgs() << "Problematic function: \n" << *I.getParent()->getParent() << "\n";
   }
   Assert(InstsInThisBlock.count(Op) || DT.dominates(Op, U),
          "Instruction does not dominate all uses!", Op, &I);