[Mlir-commits] [mlir] [ArithToSPIRV] Fix a warning (PR #86702)
Kazu Hirata
llvmlistbot at llvm.org
Tue Mar 26 10:24:20 PDT 2024
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/86702
mlir/lib/Conversion/ArithToSPIRV/ArithToSPIRV.cpp:995:11: error:
unused variable 'converter' [-Werror,-Wunused-variable]
>From 3cda5fba2fcc121bdd2715cc34746b7ad2a04426 Mon Sep 17 00:00:00 2001
From: Kazu Hirata <kazu at google.com>
Date: Tue, 26 Mar 2024 10:09:55 -0700
Subject: [PATCH] [ArithToSPIRV] Fix a warning
mlir/lib/Conversion/ArithToSPIRV/ArithToSPIRV.cpp:995:11: error:
unused variable 'converter' [-Werror,-Wunused-variable]
---
mlir/lib/Conversion/ArithToSPIRV/ArithToSPIRV.cpp | 1 -
1 file changed, 1 deletion(-)
diff --git a/mlir/lib/Conversion/ArithToSPIRV/ArithToSPIRV.cpp b/mlir/lib/Conversion/ArithToSPIRV/ArithToSPIRV.cpp
index eb338c2da4e887..7456bf7a87a3b7 100644
--- a/mlir/lib/Conversion/ArithToSPIRV/ArithToSPIRV.cpp
+++ b/mlir/lib/Conversion/ArithToSPIRV/ArithToSPIRV.cpp
@@ -992,7 +992,6 @@ class CmpFOpNanNonePattern final : public OpConversionPattern<arith::CmpFOp> {
return failure();
Location loc = op.getLoc();
- auto *converter = getTypeConverter<SPIRVTypeConverter>();
Value replace;
if (bitEnumContainsAll(op.getFastmath(), arith::FastMathFlags::nnan)) {
More information about the Mlir-commits
mailing list