From 443b6ec169ba9af0675f4b78f0fee1314dd09ed8 Mon Sep 17 00:00:00 2001 From: Evgeny Mandrikov Date: Wed, 13 Apr 2022 09:42:29 -0700 Subject: [PATCH] [NFC] Fix build failure with GCC 11 in C++20 mode This was already fixed in https://github.com/llvm/llvm-project/commit/2ccf0b76bcaf0895e04f14e3ff53c59dd96f9f0f but then regressed in https://github.com/llvm/llvm-project/commit/79a1f3e7c6d338b953b4dfe8cd7cb13ba60fe4e7 Reviewed By: aeubanks Differential Revision: https://reviews.llvm.org/D123589 --- llvm/lib/Passes/StandardInstrumentations.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Passes/StandardInstrumentations.cpp b/llvm/lib/Passes/StandardInstrumentations.cpp index 8221b359a738..83c8239bc9b3 100644 --- a/llvm/lib/Passes/StandardInstrumentations.cpp +++ b/llvm/lib/Passes/StandardInstrumentations.cpp @@ -465,7 +465,7 @@ bool isInteresting(Any IR, StringRef PassID) { } // namespace -template ChangeReporter::~ChangeReporter() { +template ChangeReporter::~ChangeReporter() { assert(BeforeStack.empty() && "Problem with Change Printer stack."); }