]> granicus.if.org Git - clang/commitdiff
Use CodeGenModule::addReplacement() instead of directly accessing Replacements[].
authorYaron Keren <yaron.keren@gmail.com>
Sun, 7 Feb 2016 12:44:35 +0000 (12:44 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Sun, 7 Feb 2016 12:44:35 +0000 (12:44 +0000)
This helps when trying to debug who inserted into Replacements.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@260028 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGCXX.cpp

index 6847df9b749b3def2cff833ae737ee9c30b1502a..40f1bc426ff74001a8c769002bf6a19ca7d4bb81 100644 (file)
@@ -164,7 +164,7 @@ bool CodeGenModule::TryEmitDefinitionAsAlias(GlobalDecl AliasDecl,
     // members with attribute "AlwaysInline" and expect no reference to
     // be generated. It is desirable to reenable this optimisation after
     // corresponding LLVM changes.
-    Replacements[MangledName] = Aliasee;
+    addReplacement(MangledName, Aliasee);
     return false;
   }