[clang] 70e2253 - [clang][Interp][NFC] Remove unnecessary braces

Timm Bäder via cfe-commits cfe-commits at lists.llvm.org
Sun Jan 28 05:36:38 PST 2024


Author: Timm Bäder
Date: 2024-01-28T14:36:27+01:00
New Revision: 70e22537549c65d69ae97a311d821c6459b32289

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

LOG: [clang][Interp][NFC] Remove unnecessary braces

Added: 
    

Modified: 
    clang/lib/AST/Interp/Context.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/AST/Interp/Context.cpp b/clang/lib/AST/Interp/Context.cpp
index 75a300bcbace1a..ba80a015965b37 100644
--- a/clang/lib/AST/Interp/Context.cpp
+++ b/clang/lib/AST/Interp/Context.cpp
@@ -34,9 +34,8 @@ bool Context::isPotentialConstantExpr(State &Parent, const FunctionDecl *FD) {
     Func = ByteCodeStmtGen<ByteCodeEmitter>(*this, *P).compileFunc(FD);
 
   APValue DummyResult;
-  if (!Run(Parent, Func, DummyResult)) {
+  if (!Run(Parent, Func, DummyResult))
     return false;
-  }
 
   return Func->isConstexpr();
 }


        


More information about the cfe-commits mailing list