From: Yaron Keren Date: Sun, 7 Feb 2016 12:44:35 +0000 (+0000) Subject: Use CodeGenModule::addReplacement() instead of directly accessing Replacements[]. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2b3789ae6cadc1e3e0406f0ce5c4f1e62857b6a1;p=clang Use CodeGenModule::addReplacement() instead of directly accessing Replacements[]. 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 --- diff --git a/lib/CodeGen/CGCXX.cpp b/lib/CodeGen/CGCXX.cpp index 6847df9b74..40f1bc426f 100644 --- a/lib/CodeGen/CGCXX.cpp +++ b/lib/CodeGen/CGCXX.cpp @@ -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; }