[llvm] r297072 - Verifier: Change Assert to AssertDI.
Adrian Prantl via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 6 13:05:14 PST 2017
Author: adrian
Date: Mon Mar 6 15:05:14 2017
New Revision: 297072
URL: http://llvm.org/viewvc/llvm-project?rev=297072&view=rev
Log:
Verifier: Change Assert to AssertDI.
This error can be recovered from by stripping debug info.
This is NFC for +asserts builds.
Modified:
llvm/trunk/lib/IR/Verifier.cpp
Modified: llvm/trunk/lib/IR/Verifier.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Verifier.cpp?rev=297072&r1=297071&r2=297072&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Verifier.cpp (original)
+++ llvm/trunk/lib/IR/Verifier.cpp Mon Mar 6 15:05:14 2017
@@ -2734,9 +2734,9 @@ void Verifier::verifyCallSite(CallSite C
// 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);
}
More information about the llvm-commits
mailing list