Verifier: Change Assert to AssertDI.

This error can be recovered from by stripping debug info.
This is NFC for +asserts builds.

llvm-svn: 297072
This commit is contained in:
Adrian Prantl 2017-03-06 21:05:14 +00:00
parent bc9cbcedc1
commit fb80e79d8f
1 changed files with 3 additions and 3 deletions

View File

@ -2734,8 +2734,8 @@ 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",
AssertDI(I->getDebugLoc(), "inlinable function call in a function with "
"debug info must have a !dbg location",
I);
visitInstruction(*I);