summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/MicrosoftCXXABI.cpp
diff options
context:
space:
mode:
authorTimur Iskhodzhanov <timurrrr@google.com>2013-07-19 08:14:45 +0000
committerTimur Iskhodzhanov <timurrrr@google.com>2013-07-19 08:14:45 +0000
commit03e8746f90f43cb837e1a42fa290ff61ea253782 (patch)
tree3800eb01050b51c68124fc0c2d7e3244f4cd2940 /clang/lib/CodeGen/MicrosoftCXXABI.cpp
parent90a735d606491fc9cafc89bbe13d1f144fa70e7f (diff)
downloadbcm5719-llvm-03e8746f90f43cb837e1a42fa290ff61ea253782.tar.gz
bcm5719-llvm-03e8746f90f43cb837e1a42fa290ff61ea253782.zip
Simplify the CodeGenFunction::Build*Virtual*Call family of functions
llvm-svn: 186657
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 f1e10db0ad7..22d548857b7 100644
--- a/clang/lib/CodeGen/MicrosoftCXXABI.cpp
+++ b/clang/lib/CodeGen/MicrosoftCXXABI.cpp
@@ -490,7 +490,8 @@ void MicrosoftCXXABI::EmitVirtualDestructorCall(CodeGenFunction &CGF,
const CGFunctionInfo *FInfo
= &CGM.getTypes().arrangeCXXDestructor(Dtor, Dtor_Deleting);
llvm::Type *Ty = CGF.CGM.getTypes().GetFunctionType(*FInfo);
- llvm::Value *Callee = CGF.BuildVirtualCall(Dtor, Dtor_Deleting, This, Ty);
+ llvm::Value *Callee
+ = CGF.BuildVirtualCall(GlobalDecl(Dtor, Dtor_Deleting), This, Ty);
ASTContext &Context = CGF.getContext();
llvm::Value *ImplicitParam
OpenPOWER on IntegriCloud