[clang] [llvm] [Clang][AIX] Add -mloadtime-comment-vars flag to preserve identifying variables (PR #187986)

Tony Varghese via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 6 02:15:03 PDT 2026


================
@@ -15532,6 +15532,12 @@ static void processForLoadTimeCommentVar(Sema &S, VarDecl *VD) {
     Reason = diag::LoadTimeCommentVarReason::TemplateSpecialization;
   else if (VD->isStaticDataMember())
     Reason = diag::LoadTimeCommentVarReason::StaticDataMember;
+  else if (VD->isInline())
+    // An inline variable is defined in every translation unit that sees it,
+    // and a module importer re-emits it using the decision made when the
+    // module was built, so the result would depend on option consistency
+    // across compilations.
----------------
tonykuttai wrote:

reworded.

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


More information about the cfe-commits mailing list