summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGCXX.cpp
diff options
context:
space:
mode:
authorYaron Keren <yaron.keren@gmail.com>2016-02-07 12:44:35 +0000
committerYaron Keren <yaron.keren@gmail.com>2016-02-07 12:44:35 +0000
commitf8adb3818df2f250b0d8fec267108740b8d2b2a3 (patch)
tree2b2e304c261261ec3acd3d3a0f3e0d41bcc736ac /clang/lib/CodeGen/CGCXX.cpp
parentb76108a63af07023b02dabc815a61f93e84b9e37 (diff)
downloadbcm5719-llvm-f8adb3818df2f250b0d8fec267108740b8d2b2a3.tar.gz
bcm5719-llvm-f8adb3818df2f250b0d8fec267108740b8d2b2a3.zip
Use CodeGenModule::addReplacement() instead of directly accessing Replacements[].
This helps when trying to debug who inserted into Replacements. llvm-svn: 260028
Diffstat (limited to 'clang/lib/CodeGen/CGCXX.cpp')
-rw-r--r--clang/lib/CodeGen/CGCXX.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGCXX.cpp b/clang/lib/CodeGen/CGCXX.cpp
index 6847df9b749..40f1bc426ff 100644
--- a/clang/lib/CodeGen/CGCXX.cpp
+++ b/clang/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;
}
OpenPOWER on IntegriCloud