[clang-tools-extra] 9c6a2f2 - Fix an unused variable warning in no-asserts build mode

Dmitri Gribenko via cfe-commits cfe-commits at lists.llvm.org
Tue May 17 06:28:11 PDT 2022


Author: Dmitri Gribenko
Date: 2022-05-17T15:27:44+02:00
New Revision: 9c6a2f29660b886044a267bb4de662cd801079bc

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

LOG: Fix an unused variable warning in no-asserts build mode

Added: 
    

Modified: 
    clang-tools-extra/pseudo/lib/GLR.cpp

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/pseudo/lib/GLR.cpp b/clang-tools-extra/pseudo/lib/GLR.cpp
index cf0a370820e1..10fa0d0568c0 100644
--- a/clang-tools-extra/pseudo/lib/GLR.cpp
+++ b/clang-tools-extra/pseudo/lib/GLR.cpp
@@ -40,6 +40,7 @@ const ForestNode &glrParse(const TokenStream &Tokens, const ParseParams &Params,
                            SymbolID StartSymbol) {
   llvm::ArrayRef<ForestNode> Terminals = Params.Forest.createTerminals(Tokens);
   auto &G = Params.G;
+  (void)G;
   auto &GSS = Params.GSStack;
 
   // Lists of active shift, reduce, accept actions.


        


More information about the cfe-commits mailing list