diff options
author | Dmitry Polukhin <dmitry.polukhin@gmail.com> | 2016-05-27 08:52:34 +0000 |
---|---|---|
committer | Dmitry Polukhin <dmitry.polukhin@gmail.com> | 2016-05-27 08:52:34 +0000 |
commit | 5fa681ee781dc41baf0813a778e73bd31bb8443b (patch) | |
tree | 82b272656e78f92a9b430a62355a5f123465fca0 /clang/lib/AST/MicrosoftMangle.cpp | |
parent | c013e5737bfe8de742adbc1c937415707c195dc2 (diff) | |
download | bcm5719-llvm-5fa681ee781dc41baf0813a778e73bd31bb8443b.tar.gz bcm5719-llvm-5fa681ee781dc41baf0813a778e73bd31bb8443b.zip |
[MSVC2015] Fix mangling for static variables initialization guards
It seems that suffix '@4HA' was omitted for unknown reason. It is
non-cont non-volatile 'int' type of normal variable TSS.
Differential revision: http://reviews.llvm.org/D20683
llvm-svn: 270974
Diffstat (limited to 'clang/lib/AST/MicrosoftMangle.cpp')
-rw-r--r-- | clang/lib/AST/MicrosoftMangle.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/AST/MicrosoftMangle.cpp b/clang/lib/AST/MicrosoftMangle.cpp index b93156cabae..04d8d777101 100644 --- a/clang/lib/AST/MicrosoftMangle.cpp +++ b/clang/lib/AST/MicrosoftMangle.cpp @@ -2837,6 +2837,7 @@ void MicrosoftMangleContextImpl::mangleThreadSafeStaticGuardVariable( Mangler.getStream() << "\01?$TSS" << GuardNum << '@'; Mangler.mangleNestedName(VD); + Mangler.getStream() << "@4HA"; } void MicrosoftMangleContextImpl::mangleStaticGuardVariable(const VarDecl *VD, |