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