forked from OSchip/llvm-project
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
bc9cbcedc1
commit
fb80e79d8f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue