[Mlir-commits] [mlir] c370869 - [mlir][NFC] Avoid a warning (#114052)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Oct 29 07:01:40 PDT 2024


Author: Piotr Fusik
Date: 2024-10-29T15:01:37+01:00
New Revision: c370869cd6f66e3c2ab33528e44959279311e499

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

LOG: [mlir][NFC] Avoid a warning (#114052)

gcc 14.1 warning: template-id not allowed for destructor in C++20
[-Wtemplate-id-cdtor]

Added: 
    

Modified: 
    mlir/lib/Pass/PassRegistry.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Pass/PassRegistry.cpp b/mlir/lib/Pass/PassRegistry.cpp
index fe842755958418..029512fd3ecc11 100644
--- a/mlir/lib/Pass/PassRegistry.cpp
+++ b/mlir/lib/Pass/PassRegistry.cpp
@@ -422,7 +422,7 @@ llvm::cl::OptionValue<OpPassManager>::operator=(
   return *this;
 }
 
-llvm::cl::OptionValue<OpPassManager>::~OptionValue<OpPassManager>() = default;
+llvm::cl::OptionValue<OpPassManager>::~OptionValue() = default;
 
 void llvm::cl::OptionValue<OpPassManager>::setValue(
     const OpPassManager &newValue) {


        


More information about the Mlir-commits mailing list