OSDN Git Service

Verifier: Change Assert to AssertDI.
authorAdrian Prantl <aprantl@apple.com>
Mon, 6 Mar 2017 21:05:14 +0000 (21:05 +0000)
committerAdrian Prantl <aprantl@apple.com>
Mon, 6 Mar 2017 21:05:14 +0000 (21:05 +0000)
This error can be recovered from by stripping debug info.
This is NFC for +asserts builds.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297072 91177308-0d34-0410-b5e6-96231b3b80d8

lib/IR/Verifier.cpp

index deba84d..4c80802 100644 (file)
@@ -2734,9 +2734,9 @@ void Verifier::verifyCallSite(CallSite CS) {
   // do so causes assertion failures when the inliner sets up inline scope info.
   if (I->getFunction()->getSubprogram() && CS.getCalledFunction() &&
       CS.getCalledFunction()->getSubprogram())
-    Assert(I->getDebugLoc(), "inlinable function call in a function with debug "
-                             "info must have a !dbg location",
-           I);
+    AssertDI(I->getDebugLoc(), "inlinable function call in a function with "
+                               "debug info must have a !dbg location",
+             I);
 
   visitInstruction(*I);
 }