summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/ItaniumCXXABI.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/ItaniumCXXABI.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/ItaniumCXXABI.cpp')
-rw-r--r--clang/lib/CodeGen/ItaniumCXXABI.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/ItaniumCXXABI.cpp b/clang/lib/CodeGen/ItaniumCXXABI.cpp
index 279c2120e01..cdfe909f9d0 100644
--- a/clang/lib/CodeGen/ItaniumCXXABI.cpp
+++ b/clang/lib/CodeGen/ItaniumCXXABI.cpp
@@ -834,7 +834,8 @@ void ItaniumCXXABI::EmitVirtualDestructorCall(CodeGenFunction &CGF,
const CGFunctionInfo *FInfo
= &CGM.getTypes().arrangeCXXDestructor(Dtor, DtorType);
llvm::Type *Ty = CGF.CGM.getTypes().GetFunctionType(*FInfo);
- llvm::Value *Callee = CGF.BuildVirtualCall(Dtor, DtorType, This, Ty);
+ llvm::Value *Callee
+ = CGF.BuildVirtualCall(GlobalDecl(Dtor, DtorType), This, Ty);
CGF.EmitCXXMemberCall(Dtor, CallLoc, Callee, ReturnValueSlot(), This,
/*ImplicitParam=*/0, QualType(), 0, 0);
OpenPOWER on IntegriCloud