Use the new API for `DebugLoc` added in r233573 before the old one
disappears.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@233589
91177308-0d34-0410-b5e6-
96231b3b80d8
Ret = Builder.CreateRetVoid();
}
- if (!RetDbgLoc.isUnknown())
+ if (RetDbgLoc)
Ret->setDebugLoc(std::move(RetDbgLoc));
}
: CGF(CGF) {
if (CGF.getDebugInfo()) {
OriginalLocation = CGF.Builder.getCurrentDebugLocation();
- if (!Loc.isUnknown())
+ if (Loc)
CGF.Builder.SetCurrentDebugLocation(std::move(Loc));
}
}
callSite->replaceAllUsesWith(newCall.getInstruction());
// Copy debug location attached to CI.
- if (!callSite->getDebugLoc().isUnknown())
+ if (callSite->getDebugLoc())
newCall->setDebugLoc(callSite->getDebugLoc());
callSite->eraseFromParent();
}