From 21a87d73742ef282a7bda1e56bf06619fd81233c Mon Sep 17 00:00:00 2001 From: Benety Goh Date: Sun, 2 Aug 2020 10:30:48 -0400 Subject: SERVER-49800 fix use-after-move violations in query --- src/mongo/db/cst/pipeline_parser_gen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mongo/db/cst') diff --git a/src/mongo/db/cst/pipeline_parser_gen.cpp b/src/mongo/db/cst/pipeline_parser_gen.cpp index 06fc7b7cadb..8d13065b8ee 100644 --- a/src/mongo/db/cst/pipeline_parser_gen.cpp +++ b/src/mongo/db/cst/pipeline_parser_gen.cpp @@ -3327,8 +3327,8 @@ int PipelineParserGen::parse() { | yyreturn -- parsing is finished, return the result. | `-----------------------------------------------------*/ yyreturn: - if (!yyla.empty()) - yy_destroy_("Cleanup: discarding lookahead", yyla); + if (!yyla.empty()) // NOLINT(bugprone-use-after-move) + yy_destroy_("Cleanup: discarding lookahead", yyla); // NOLINT(bugprone-use-after-move) /* Do not reclaim the symbols of the rule whose action triggered this YYABORT or YYACCEPT. */ -- cgit v1.2.1