[clang-tools-extra] 9ce232f - [pseudo] Fix the missing-field-initializers warning from f1ac00c9b0d1, NFC

Haojian Wu via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 9 05:11:53 PDT 2022


Author: Haojian Wu
Date: 2022-06-09T14:10:36+02:00
New Revision: 9ce232fba99c47c3246f06fcbe37c24b9d90585f

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

LOG: [pseudo] Fix the missing-field-initializers warning from f1ac00c9b0d1, NFC

Added: 
    

Modified: 
    clang-tools-extra/pseudo/lib/grammar/GrammarBNF.cpp

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/pseudo/lib/grammar/GrammarBNF.cpp b/clang-tools-extra/pseudo/lib/grammar/GrammarBNF.cpp
index 82daf47af610..91e0d3956518 100644
--- a/clang-tools-extra/pseudo/lib/grammar/GrammarBNF.cpp
+++ b/clang-tools-extra/pseudo/lib/grammar/GrammarBNF.cpp
@@ -232,7 +232,7 @@ class GrammarBuilder {
         continue;
       }
 
-      Out.Sequence.push_back({Chunk});
+      Out.Sequence.push_back({Chunk, /*Attributes=*/{}});
     }
     return true;
   }


        


More information about the cfe-commits mailing list