]> granicus.if.org Git - clang/commitdiff
Fix build.
authorAnders Carlsson <andersca@mac.com>
Fri, 11 Dec 2009 23:31:21 +0000 (23:31 +0000)
committerAnders Carlsson <andersca@mac.com>
Fri, 11 Dec 2009 23:31:21 +0000 (23:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91182 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDeclCXX.cpp

index 32e391d8d0305c3524e5161bdd830150df7b94fa..5712555e7c4d4478d4118e210608d41f288c1854 100644 (file)
@@ -4665,14 +4665,8 @@ bool Sema::CheckOverloadedOperatorDeclaration(FunctionDecl *FnDecl) {
   //   described completely in 3.7.3. The attributes and restrictions
   //   found in the rest of this subclause do not apply to them unless
   //   explicitly stated in 3.7.3.
-  if (Op == OO_Delete || Op == OO_Array_Delete) {
+  if (Op == OO_Delete || Op == OO_Array_Delete)
     return CheckOperatorDeleteDeclaration(*this, FnDecl);
-      FnDecl->setInvalidDecl();
-      return true;
-    }
-    
-    return false;
-  }
   
   if (Op == OO_New || Op == OO_Array_New) {
     bool ret = false;