[clang] eed92a9 - [NFC] Fix warning wiht parens in assert from 1376c7

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 4 14:34:10 PDT 2022


Author: Erich Keane
Date: 2022-10-04T14:33:36-07:00
New Revision: eed92a99ddfc411b7b78847b8c0ca30f624d8c7d

URL: https://github.com/llvm/llvm-project/commit/eed92a99ddfc411b7b78847b8c0ca30f624d8c7d
DIFF: https://github.com/llvm/llvm-project/commit/eed92a99ddfc411b7b78847b8c0ca30f624d8c7d.diff

LOG: [NFC] Fix warning wiht parens in assert from 1376c7

Added: 
    

Modified: 
    clang/include/clang/AST/Decl.h

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/AST/Decl.h b/clang/include/clang/AST/Decl.h
index 6a6db7a0c34c..d566564ee7d0 100644
--- a/clang/include/clang/AST/Decl.h
+++ b/clang/include/clang/AST/Decl.h
@@ -2257,9 +2257,8 @@ class FunctionDecl : public DeclaratorDecl,
   }
 
   void setDefaultLoc(SourceLocation NewLoc) {
-    assert(NewLoc.isInvalid() ||
-           isExplicitlyDefaulted() &&
-               "Can't set default loc is function isn't explicitly defaulted");
+    assert((NewLoc.isInvalid() || isExplicitlyDefaulted()) &&
+           "Can't set default loc is function isn't explicitly defaulted");
     DefaultKWLoc = NewLoc;
   }
 


        


More information about the cfe-commits mailing list