summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Verifier.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2017-03-06 21:05:14 +0000
committerAdrian Prantl <aprantl@apple.com>2017-03-06 21:05:14 +0000
commitfb80e79d8fadbe348e640960bc6ca9f2f5f7c2bb (patch)
tree8e2cdde7cfb542816f5096cc141823ea75171129 /llvm/lib/IR/Verifier.cpp
parentbc9cbcedc16687e66a24ac5a36f6a1763d79e92f (diff)
downloadbcm5719-llvm-fb80e79d8fadbe348e640960bc6ca9f2f5f7c2bb.tar.gz
bcm5719-llvm-fb80e79d8fadbe348e640960bc6ca9f2f5f7c2bb.zip
Verifier: Change Assert to AssertDI.
This error can be recovered from by stripping debug info. This is NFC for +asserts builds. llvm-svn: 297072
Diffstat (limited to 'llvm/lib/IR/Verifier.cpp')
-rw-r--r--llvm/lib/IR/Verifier.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp
index deba84dbb96..4c808029bf5 100644
--- a/llvm/lib/IR/Verifier.cpp
+++ b/llvm/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);
}
OpenPOWER on IntegriCloud