From 441d8e70c10f20f48d736e426f0188ad70205795 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Mon, 6 Mar 2017 21:05:14 +0000 Subject: [PATCH] Verifier: Change Assert to AssertDI. 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/IR/Verifier.cpp b/lib/IR/Verifier.cpp index deba84dbb96..4c808029bf5 100644 --- a/lib/IR/Verifier.cpp +++ b/lib/IR/Verifier.cpp @@ -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); } -- 2.11.0