================
@@ -345,7 +351,10 @@ void CGDebugInfo::setLocation(SourceLocation Loc) {
   if (Loc.isInvalid())
     return;
 
-  CurLoc = CGM.getContext().getSourceManager().getFileLoc(Loc);
+  if (DebugInfoMacroExpansionLoc)
+    CurLoc = CGM.getContext().getSourceManager().getExpansionLoc(Loc);
+  else
+    CurLoc = CGM.getContext().getSourceManager().getFileLoc(Loc);
----------------
snehasish wrote:

Done.

https://github.com/llvm/llvm-project/pull/174895
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to