[clang] 7a8cb6c - [clang][NFC] Fix warning due to initializing a pointer with `false`

Markus Böck via cfe-commits cfe-commits at lists.llvm.org
Sat Dec 31 09:26:09 PST 2022


Author: Markus Böck
Date: 2022-12-31T18:07:03+01:00
New Revision: 7a8cb6cd4e3ff8aaadebff2b9d3ee9e2a326d444

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

LOG: [clang][NFC] Fix warning due to initializing a pointer with `false`

Added: 
    

Modified: 
    clang/lib/Sema/SemaInit.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Sema/SemaInit.cpp b/clang/lib/Sema/SemaInit.cpp
index efc3274ce7d3c..d6ca63745f171 100644
--- a/clang/lib/Sema/SemaInit.cpp
+++ b/clang/lib/Sema/SemaInit.cpp
@@ -9150,7 +9150,7 @@ ExprResult InitializationSequence::Perform(Sema &S,
       break;
     }
     case SK_ParenthesizedListInit: {
-      CurInit = false;
+      CurInit = nullptr;
       TryOrBuildParenListInitialization(S, Entity, Kind, Args, *this,
                                         /*VerifyOnly=*/false, &CurInit);
       if (CurInit.get() && ResultType)


        


More information about the cfe-commits mailing list