[Mlir-commits] [mlir] e0a293d - [mlir] Fix a warning
Kazu Hirata
llvmlistbot at llvm.org
Fri May 17 00:10:06 PDT 2024
Author: Kazu Hirata
Date: 2024-05-17T00:10:00-07:00
New Revision: e0a293d12f3fe1c2a284e2e116cfa77d894da49f
URL: https://github.com/llvm/llvm-project/commit/e0a293d12f3fe1c2a284e2e116cfa77d894da49f
DIFF: https://github.com/llvm/llvm-project/commit/e0a293d12f3fe1c2a284e2e116cfa77d894da49f.diff
LOG: [mlir] Fix a warning
This patch fixes:
mlir/lib/Conversion/ComplexToStandard/ComplexToStandard.cpp:964:26:
error: missing 'typename' prior to dependent type name Op::Adaptor;
implicit 'typename' is a C++20 extension
[-Werror,-Wc++20-extensions]
Added:
Modified:
mlir/lib/Conversion/ComplexToStandard/ComplexToStandard.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Conversion/ComplexToStandard/ComplexToStandard.cpp b/mlir/lib/Conversion/ComplexToStandard/ComplexToStandard.cpp
index edca8eaecbff3..d8150aeb828a5 100644
--- a/mlir/lib/Conversion/ComplexToStandard/ComplexToStandard.cpp
+++ b/mlir/lib/Conversion/ComplexToStandard/ComplexToStandard.cpp
@@ -961,7 +961,7 @@ struct TanTanhOpConversion : public OpConversionPattern<Op> {
using OpConversionPattern<Op>::OpConversionPattern;
LogicalResult
- matchAndRewrite(Op op, Op::Adaptor adaptor,
+ matchAndRewrite(Op op, typename Op::Adaptor adaptor,
ConversionPatternRewriter &rewriter) const override {
ImplicitLocOpBuilder b(op.getLoc(), rewriter);
auto loc = op.getLoc();
More information about the Mlir-commits
mailing list