[Mlir-commits] [mlir] 690f05e - [mlir] Fix a warning
Kazu Hirata
llvmlistbot at llvm.org
Wed Dec 21 16:10:34 PST 2022
Author: Kazu Hirata
Date: 2022-12-21T16:10:28-08:00
New Revision: 690f05e58dbe4f9542c7a326a626862061bb163f
URL: https://github.com/llvm/llvm-project/commit/690f05e58dbe4f9542c7a326a626862061bb163f
DIFF: https://github.com/llvm/llvm-project/commit/690f05e58dbe4f9542c7a326a626862061bb163f.diff
LOG: [mlir] Fix a warning
This patch fixes:
mlir/include/mlir/Analysis/AliasAnalysis/LocalAliasAnalysis.h:24:7:
error: 'mlir::LocalAliasAnalysis' has virtual functions but
non-virtual destructor [-Werror,-Wnon-virtual-dtor]
Added:
Modified:
mlir/include/mlir/Analysis/AliasAnalysis/LocalAliasAnalysis.h
Removed:
################################################################################
diff --git a/mlir/include/mlir/Analysis/AliasAnalysis/LocalAliasAnalysis.h b/mlir/include/mlir/Analysis/AliasAnalysis/LocalAliasAnalysis.h
index 06012403cf29f..a9b4d5b2b66e5 100644
--- a/mlir/include/mlir/Analysis/AliasAnalysis/LocalAliasAnalysis.h
+++ b/mlir/include/mlir/Analysis/AliasAnalysis/LocalAliasAnalysis.h
@@ -23,6 +23,8 @@ namespace mlir {
/// checks to see if they alias.
class LocalAliasAnalysis {
public:
+ virtual ~LocalAliasAnalysis() = default;
+
/// Given two values, return their aliasing behavior.
AliasResult alias(Value lhs, Value rhs);
More information about the Mlir-commits
mailing list