[clang] [clang] Use File Location for debug info resolution. (PR #163982)
David Blaikie via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 17 10:22:18 PDT 2025
================
@@ -639,7 +640,7 @@ unsigned CGDebugInfo::getColumnNumber(SourceLocation Loc, bool Force) {
if (Loc.isInvalid() && CurLoc.isInvalid())
return 0;
SourceManager &SM = CGM.getContext().getSourceManager();
- PresumedLoc PLoc = SM.getPresumedLoc(Loc.isValid() ? Loc : CurLoc);
+ PresumedLoc PLoc = SM.getPresumedLoc(Loc.isValid() ? SM.getFileLoc(Loc) : CurLoc);
----------------
dwblaikie wrote:
Please address the formatting here: https://github.com/llvm/llvm-project/actions/runs/18597926931/job/53034812066?pr=163982
https://github.com/llvm/llvm-project/pull/163982
More information about the cfe-commits
mailing list