[llvm] 443b6ec - [NFC] Fix build failure with GCC 11 in C++20 mode

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 13 09:44:19 PDT 2022


Author: Evgeny Mandrikov
Date: 2022-04-13T09:42:41-07:00
New Revision: 443b6ec169ba9af0675f4b78f0fee1314dd09ed8

URL: https://github.com/llvm/llvm-project/commit/443b6ec169ba9af0675f4b78f0fee1314dd09ed8
DIFF: https://github.com/llvm/llvm-project/commit/443b6ec169ba9af0675f4b78f0fee1314dd09ed8.diff

LOG: [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

Added: 
    

Modified: 
    llvm/lib/Passes/StandardInstrumentations.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Passes/StandardInstrumentations.cpp b/llvm/lib/Passes/StandardInstrumentations.cpp
index 8221b359a738f..83c8239bc9b36 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 <typename T> ChangeReporter<T>::~ChangeReporter<T>() {
+template <typename T> ChangeReporter<T>::~ChangeReporter() {
   assert(BeforeStack.empty() && "Problem with Change Printer stack.");
 }
 


        


More information about the llvm-commits mailing list