summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/MicrosoftCXXABI.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2015-03-10 19:01:51 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2015-03-10 19:01:51 +0000
commit999cbf9d210c23e0311c1d31a89afb2018bc73fe (patch)
tree2bebc76cc48dbea956aeadb746fdcb91dc7be501 /clang/lib/CodeGen/MicrosoftCXXABI.cpp
parentec1e2bb6a495e87fc59226b5c00fcf8d1b139919 (diff)
downloadbcm5719-llvm-999cbf9d210c23e0311c1d31a89afb2018bc73fe.tar.gz
bcm5719-llvm-999cbf9d210c23e0311c1d31a89afb2018bc73fe.zip
MS ABI: Mangle the location of the catchable type into it's name
Because the catchable type has a reference to its name, mangle the location to ensure that two catchable types with different locations are distinct. llvm-svn: 231819
Diffstat (limited to 'clang/lib/CodeGen/MicrosoftCXXABI.cpp')
-rw-r--r--clang/lib/CodeGen/MicrosoftCXXABI.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/MicrosoftCXXABI.cpp b/clang/lib/CodeGen/MicrosoftCXXABI.cpp
index 5b39e61173b..7092e1803bd 100644
--- a/clang/lib/CodeGen/MicrosoftCXXABI.cpp
+++ b/clang/lib/CodeGen/MicrosoftCXXABI.cpp
@@ -3233,7 +3233,8 @@ llvm::Constant *MicrosoftCXXABI::getCatchableType(QualType T,
SmallString<256> MangledName;
{
llvm::raw_svector_ostream Out(MangledName);
- getMangleContext().mangleCXXCatchableType(T, CD, Size, Out);
+ getMangleContext().mangleCXXCatchableType(T, CD, Size, NVOffset,
+ VBPtrOffset, VBIndex, Out);
}
if (llvm::GlobalVariable *GV = CGM.getModule().getNamedGlobal(MangledName))
return getImageRelativeConstant(GV);
OpenPOWER on IntegriCloud