[cfe-commits] r81619 - /cfe/trunk/lib/CodeGen/Mangle.cpp

Mike Stump mrs at apple.com
Sat Sep 12 11:57:59 PDT 2009


Author: mrs
Date: Sat Sep 12 13:57:58 2009
New Revision: 81619

URL: http://llvm.org/viewvc/llvm-project?rev=81619&view=rev
Log:
We can't have ctors in the vtable (right Doug?)  :-)

Modified:
    cfe/trunk/lib/CodeGen/Mangle.cpp

Modified: cfe/trunk/lib/CodeGen/Mangle.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/Mangle.cpp?rev=81619&r1=81618&r2=81619&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/Mangle.cpp (original)
+++ cfe/trunk/lib/CodeGen/Mangle.cpp Sat Sep 12 13:57:58 2009
@@ -897,8 +897,6 @@
   void mangleThunk(const FunctionDecl *FD, int64_t nv, int64_t v,
                    ASTContext &Context, llvm::raw_ostream &os) {
     // FIXME: Hum, we might have to thunk these, fix.
-    assert(!isa<CXXConstructorDecl>(FD) &&
-           "Use mangleCXXCtor for constructor decls!");
     assert(!isa<CXXDestructorDecl>(FD) &&
            "Use mangleCXXDtor for destructor decls!");
 
@@ -913,8 +911,6 @@
                             int64_t nv_r, int64_t v_r, ASTContext &Context,
                             llvm::raw_ostream &os) {
     // FIXME: Hum, we might have to thunk these, fix.
-    assert(!isa<CXXConstructorDecl>(FD) &&
-           "Use mangleCXXCtor for constructor decls!");
     assert(!isa<CXXDestructorDecl>(FD) &&
            "Use mangleCXXDtor for destructor decls!");
 





More information about the cfe-commits mailing list