diff options
author | Mike Stump <mrs@apple.com> | 2009-09-29 00:50:50 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-09-29 00:50:50 +0000 |
commit | e7a2b48572133097557b3dbab378cd25f817e5ee (patch) | |
tree | 93458f1a01c70f51d2e6e3ef224e5638d25f0849 /clang/lib/CodeGen/CGCXX.cpp | |
parent | ba4a6fdd17f745eb52ef5799c3fea15aa4eefe44 (diff) | |
download | bcm5719-llvm-e7a2b48572133097557b3dbab378cd25f817e5ee.tar.gz bcm5719-llvm-e7a2b48572133097557b3dbab378cd25f817e5ee.zip |
Fix http://llvm.org/PR5090.
llvm-svn: 83035
Diffstat (limited to 'clang/lib/CodeGen/CGCXX.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGCXX.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGCXX.cpp b/clang/lib/CodeGen/CGCXX.cpp index 4c1f6ad4cd3..e37b4a85482 100644 --- a/clang/lib/CodeGen/CGCXX.cpp +++ b/clang/lib/CodeGen/CGCXX.cpp @@ -221,7 +221,8 @@ RValue CodeGenFunction::EmitCXXMemberCallExpr(const CXXMemberCallExpr *CE) { // virtual call mechanism. llvm::Value *Callee; if (MD->isVirtual() && !ME->hasQualifier()) - Callee = BuildVirtualCall(MD, This, Ty); + // FIXME: push getCanonicalDecl as a conversion using the static type system (CanCXXMethodDecl). + Callee = BuildVirtualCall(MD->getCanonicalDecl(), This, Ty); else if (const CXXDestructorDecl *Destructor = dyn_cast<CXXDestructorDecl>(MD)) Callee = CGM.GetAddrOfFunction(GlobalDecl(Destructor, Dtor_Complete), Ty); |