1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

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 9112f62fdf
commit b47b3f0b5d

View 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);
}