Skip to content

Commit d57766f

Browse files
committed
Verifier: Change Assert to AssertDI.
This error can be recovered from by stripping debug info. This is NFC for +asserts builds. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297072 91177308-0d34-0410-b5e6-96231b3b80d8 (cherry picked from commit 441d8e7)
1 parent a7c680d commit d57766f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/IR/Verifier.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2693,9 +2693,9 @@ void Verifier::verifyCallSite(CallSite CS) {
26932693
// do so causes assertion failures when the inliner sets up inline scope info.
26942694
if (I->getFunction()->getSubprogram() && CS.getCalledFunction() &&
26952695
CS.getCalledFunction()->getSubprogram())
2696-
Assert(I->getDebugLoc(), "inlinable function call in a function with debug "
2697-
"info must have a !dbg location",
2698-
I);
2696+
AssertDI(I->getDebugLoc(), "inlinable function call in a function with "
2697+
"debug info must have a !dbg location",
2698+
I);
26992699

27002700
visitInstruction(*I);
27012701
}

0 commit comments

Comments
 (0)