From d26344731128ccdd8eeb27a12b2c3bd75e5e3a63 Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Tue, 5 Jul 2022 15:40:02 +0200 Subject: [PATCH] [pseudo] Fix the build for the benchmark tool. --- clang-tools-extra/pseudo/benchmarks/Benchmark.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang-tools-extra/pseudo/benchmarks/Benchmark.cpp b/clang-tools-extra/pseudo/benchmarks/Benchmark.cpp index 5bf6ff2c..02f4a40 100644 --- a/clang-tools-extra/pseudo/benchmarks/Benchmark.cpp +++ b/clang-tools-extra/pseudo/benchmarks/Benchmark.cpp @@ -117,12 +117,12 @@ static void preprocess(benchmark::State &State) { BENCHMARK(preprocess); static void glrParse(benchmark::State &State) { - SymbolID StartSymbol = *Lang->G->findNonterminal("translation-unit"); + SymbolID StartSymbol = *Lang->G.findNonterminal("translation-unit"); TokenStream Stream = lexAndPreprocess(); for (auto _ : State) { pseudo::ForestArena Forest; pseudo::GSS GSS; - pseudo::glrParse(Stream, ParseParams{*Lang->G, Lang->Table, Forest, GSS}, + pseudo::glrParse(Stream, ParseParams{Lang->G, Lang->Table, Forest, GSS}, StartSymbol); } State.SetBytesProcessed(static_cast(State.iterations()) * -- 2.7.4