[cfe-commits] r99260 - /cfe/trunk/lib/CodeGen/CGCXX.cpp
Anders Carlsson
andersca at mac.com
Mon Mar 22 22:15:25 PDT 2010
Author: andersca
Date: Tue Mar 23 00:15:24 2010
New Revision: 99260
URL: http://llvm.org/viewvc/llvm-project?rev=99260&view=rev
Log:
Use the canonical destructor, which fixes the self-host build. Thanks to Eli for noticing.
Modified:
cfe/trunk/lib/CodeGen/CGCXX.cpp
Modified: cfe/trunk/lib/CodeGen/CGCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCXX.cpp?rev=99260&r1=99259&r2=99260&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGCXX.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGCXX.cpp Tue Mar 23 00:15:24 2010
@@ -492,7 +492,8 @@
const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl());
if (const CXXDestructorDecl *DD = dyn_cast<CXXDestructorDecl>(MD))
- GD = GlobalDecl(DD, GD.getDtorType());
+ GD = GlobalDecl(cast<CXXDestructorDecl>(DD->getCanonicalDecl()),
+ GD.getDtorType());
else
GD = MD->getCanonicalDecl();
More information about the cfe-commits
mailing list