diff options
author | Yaron Keren <yaron.keren@gmail.com> | 2016-02-07 12:44:35 +0000 |
---|---|---|
committer | Yaron Keren <yaron.keren@gmail.com> | 2016-02-07 12:44:35 +0000 |
commit | 2b3789ae6cadc1e3e0406f0ce5c4f1e62857b6a1 (patch) | |
tree | ee19d24f6e6a14094bbaa8b2b948ecf232dac8ed /lib/CodeGen/CGCXX.cpp | |
parent | 38f4e9220a67bd40c9cef1bcc85afd3e4d8f3fc9 (diff) | |
download | clang-2b3789ae6cadc1e3e0406f0ce5c4f1e62857b6a1.tar.gz |
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
Diffstat (limited to 'lib/CodeGen/CGCXX.cpp')
-rw-r--r-- | lib/CodeGen/CGCXX.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |