[Mlir-commits] [mlir] 6318dd8 - [mlir] Fix a warning

Kazu Hirata llvmlistbot at llvm.org
Sun Nov 26 20:41:03 PST 2023


Author: Kazu Hirata
Date: 2023-11-26T20:40:56-08:00
New Revision: 6318dd82732c583fcfa12fe5b8d837e048dbb571

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

LOG: [mlir] Fix a warning

This patch fixes:

 mlir/lib/Pass/PassRegistry.cpp:376:37: error: ISO C++ requires the
 name after '::~' to be found in the same scope as the name before
 '::~' [-Werror,-Wdtor-name]

Added: 
    

Modified: 
    mlir/lib/Pass/PassRegistry.cpp

Removed: 
    


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


        


More information about the Mlir-commits mailing list