diff options
author | Mike Stump <mrs@apple.com> | 2009-12-03 16:55:20 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-12-03 16:55:20 +0000 |
commit | c085a981cec80d1c2e39182116700f200c98c880 (patch) | |
tree | e0aceed24a3dc4da286ab4676313fa352552ed18 /lib/CodeGen | |
parent | 2d09ed028a626d2ebccc6d7971f8c1066a177954 (diff) |
Eli, I copied my code from this code... Let's fix the souce of the bad idea!
Thanks.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90458 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/CGVtable.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/CodeGen/CGVtable.cpp b/lib/CodeGen/CGVtable.cpp index 25da95e273..8cbd6adb08 100644 --- a/lib/CodeGen/CGVtable.cpp +++ b/lib/CodeGen/CGVtable.cpp @@ -318,12 +318,9 @@ public: llvm::Constant *WrapAddrOf(GlobalDecl GD) { const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl()); - if (const CXXDestructorDecl *Dtor = dyn_cast<CXXDestructorDecl>(MD)) - return wrap(CGM.GetAddrOfCXXDestructor(Dtor, GD.getDtorType())); - const llvm::Type *Ty = CGM.getTypes().GetFunctionTypeForVtable(MD); - return wrap(CGM.GetAddrOfFunction(MD, Ty)); + return wrap(CGM.GetAddrOfFunction(GD, Ty)); } void OverrideMethods(Path_t *Path, bool MorallyVirtual, int64_t Offset, |