[clang] [llvm] Add option to generate additional debug info for expression dereferencing pointer to pointers. (PR #81545)

David Blaikie via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 22 13:32:07 PDT 2024


================
@@ -1787,7 +1787,26 @@ Value *ScalarExprEmitter::VisitMemberExpr(MemberExpr *E) {
     }
   }
 
-  return EmitLoadOfLValue(E);
+  llvm::Value *Result = EmitLoadOfLValue(E);
+
+  // If -fdebug_info_for_profiling is specified, emit a pseudo variable and its
----------------
dwblaikie wrote:

`-fdebug-info-for-profiling` (dashes rather than underscores)

https://github.com/llvm/llvm-project/pull/81545


More information about the cfe-commits mailing list