diff options
author | David Blaikie <dblaikie@gmail.com> | 2015-04-29 21:22:47 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2015-04-29 21:22:47 +0000 |
commit | 881b23402e4feb709a117119803042f400e8712c (patch) | |
tree | acb159c967a7c6d49eebbebfa0a63f9dcfaf7f9e /clang/lib/CodeGen/MicrosoftCXXABI.cpp | |
parent | f64246be723d3acae52227e7ed612595c6a84d46 (diff) | |
download | bcm5719-llvm-881b23402e4feb709a117119803042f400e8712c.tar.gz bcm5719-llvm-881b23402e4feb709a117119803042f400e8712c.zip |
[opaque pointer type] update for LLVM API change
llvm-svn: 236161
Diffstat (limited to 'clang/lib/CodeGen/MicrosoftCXXABI.cpp')
-rw-r--r-- | clang/lib/CodeGen/MicrosoftCXXABI.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/MicrosoftCXXABI.cpp b/clang/lib/CodeGen/MicrosoftCXXABI.cpp index 42135954bbd..9c89e4ab8e2 100644 --- a/clang/lib/CodeGen/MicrosoftCXXABI.cpp +++ b/clang/lib/CodeGen/MicrosoftCXXABI.cpp @@ -1560,9 +1560,8 @@ llvm::GlobalVariable *MicrosoftCXXABI::getAddrOfVTable(const CXXRecordDecl *RD, C->setSelectionKind(llvm::Comdat::Largest); } VFTable = llvm::GlobalAlias::create( - cast<llvm::SequentialType>(VTableGEP->getType())->getElementType(), - /*AddressSpace=*/0, VFTableLinkage, VFTableName.str(), VTableGEP, - &CGM.getModule()); + cast<llvm::PointerType>(VTableGEP->getType()), VFTableLinkage, + VFTableName.str(), VTableGEP, &CGM.getModule()); VFTable->setUnnamedAddr(true); } else { // We don't need a GlobalAlias to be a symbol for the VTable if we won't |