From: Anders Carlsson Date: Fri, 11 Dec 2009 23:31:21 +0000 (+0000) Subject: Fix build. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1152c39c8a9849f437ccac68391db7845e7c42b9;p=clang Fix build. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91182 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaDeclCXX.cpp b/lib/Sema/SemaDeclCXX.cpp index 32e391d8d0..5712555e7c 100644 --- a/lib/Sema/SemaDeclCXX.cpp +++ b/lib/Sema/SemaDeclCXX.cpp @@ -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;