mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 03:23:01 +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:
parent
9112f62fdf
commit
b47b3f0b5d
@ -2734,9 +2734,9 @@ void Verifier::verifyCallSite(CallSite CS) {
|
|||||||
// do so causes assertion failures when the inliner sets up inline scope info.
|
// do so causes assertion failures when the inliner sets up inline scope info.
|
||||||
if (I->getFunction()->getSubprogram() && CS.getCalledFunction() &&
|
if (I->getFunction()->getSubprogram() && CS.getCalledFunction() &&
|
||||||
CS.getCalledFunction()->getSubprogram())
|
CS.getCalledFunction()->getSubprogram())
|
||||||
Assert(I->getDebugLoc(), "inlinable function call in a function with debug "
|
AssertDI(I->getDebugLoc(), "inlinable function call in a function with "
|
||||||
"info must have a !dbg location",
|
"debug info must have a !dbg location",
|
||||||
I);
|
I);
|
||||||
|
|
||||||
visitInstruction(*I);
|
visitInstruction(*I);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user