InstSimplify: Simplify (X - (0 - Y)) if the second sub is NUW
[oota-llvm.git] / lib / Analysis / IVUsers.cpp
index 0b94238e6631b20fef01ed354e6f6f9312205c8b..24655aa002c8aae6f78131ae3d3e13882b3d54c0 100644 (file)
@@ -287,8 +287,10 @@ void IVUsers::print(raw_ostream &OS, const Module *M) const {
       OS << ")";
     }
     OS << " in  ";
-    assert(UI->getUser() != nullptr && "Expected non-null User");
-    UI->getUser()->print(OS);
+    if (UI->getUser())
+      UI->getUser()->print(OS);
+    else
+      OS << "Printing <null> User";
     OS << '\n';
   }
 }