[Mlir-commits] [mlir] 6f66530 - [mlir] Fix a warning

Kazu Hirata llvmlistbot at llvm.org
Tue Oct 29 10:55:43 PDT 2024


Author: Kazu Hirata
Date: 2024-10-29T10:55:34-07:00
New Revision: 6f66530fd17a2333939e6b5a46d378ac7379f7ca

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

LOG: [mlir] Fix a warning

This patch fixes:

  mlir/lib/Pass/PassRegistry.cpp:425: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 029512fd3ecc11..fe842755958418 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() = 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