]> granicus.if.org Git - clang/commitdiff
Simplify.
authorAnders Carlsson <andersca@mac.com>
Mon, 3 May 2010 02:07:56 +0000 (02:07 +0000)
committerAnders Carlsson <andersca@mac.com>
Mon, 3 May 2010 02:07:56 +0000 (02:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102896 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaExprCXX.cpp

index 60ced725e90a7a7baaf5b10aef6ca74f67d593ba..e6b3c4e3a046078bcfb74d4f846869655df4f323 100644 (file)
@@ -720,10 +720,10 @@ Sema::BuildCXXNew(SourceLocation StartLoc, bool UseGlobal,
       OperatorNew->getType()->getAs<FunctionProtoType>();
     VariadicCallType CallType = 
       Proto->isVariadic() ? VariadicFunction : VariadicDoesNotApply;
-    bool Invalid = GatherArgumentsForCall(PlacementLParen, OperatorNew,
-                                          Proto, 1, PlaceArgs, NumPlaceArgs, 
-                                          AllPlaceArgs, CallType);
-    if (Invalid)
+    
+    if (GatherArgumentsForCall(PlacementLParen, OperatorNew,
+                               Proto, 1, PlaceArgs, NumPlaceArgs, 
+                               AllPlaceArgs, CallType))
       return ExprError();
     
     NumPlaceArgs = AllPlaceArgs.size();