[clang] 60732c0 - [clang][Interp][NFC] Remove superfluous return statement

Timm Bäder via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 5 04:06:01 PST 2024


Author: Timm Bäder
Date: 2024-02-05T13:05:52+01:00
New Revision: 60732c0fae56829c5475091de678ad46f0ce6287

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

LOG: [clang][Interp][NFC] Remove superfluous return statement

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/clang/lib/AST/Interp/EvaluationResult.cpp b/clang/lib/AST/Interp/EvaluationResult.cpp
index 05105862a53a8..b44e8f84a1c42 100644
--- a/clang/lib/AST/Interp/EvaluationResult.cpp
+++ b/clang/lib/AST/Interp/EvaluationResult.cpp
@@ -151,8 +151,6 @@ bool EvaluationResult::checkFullyInitialized(InterpState &S) const {
   const auto *CAT =
       cast<ConstantArrayType>(Ptr.getType()->getAsArrayTypeUnsafe());
   return CheckArrayInitialized(S, InitLoc, Ptr, CAT);
-
-  return true;
 }
 
 void EvaluationResult::dump() const {


        


More information about the cfe-commits mailing list