r260028 - Use CodeGenModule::addReplacement() instead of directly accessing Replacements[].

Yaron Keren via cfe-commits cfe-commits at lists.llvm.org
Sun Feb 7 04:44:36 PST 2016


Author: yrnkrn
Date: Sun Feb  7 06:44:35 2016
New Revision: 260028

URL: http://llvm.org/viewvc/llvm-project?rev=260028&view=rev
Log:
Use CodeGenModule::addReplacement() instead of directly accessing Replacements[].
This helps when trying to debug who inserted into Replacements.


Modified:
    cfe/trunk/lib/CodeGen/CGCXX.cpp

Modified: cfe/trunk/lib/CodeGen/CGCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCXX.cpp?rev=260028&r1=260027&r2=260028&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGCXX.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGCXX.cpp Sun Feb  7 06:44:35 2016
@@ -164,7 +164,7 @@ bool CodeGenModule::TryEmitDefinitionAsA
     // 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;
   }
 




More information about the cfe-commits mailing list