[Mlir-commits] [mlir] [ArithToSPIRV] Fix a warning (PR #86702)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Tue Mar 26 10:24:51 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-mlir
Author: Kazu Hirata (kazutakahirata)
<details>
<summary>Changes</summary>
mlir/lib/Conversion/ArithToSPIRV/ArithToSPIRV.cpp:995:11: error:
unused variable 'converter' [-Werror,-Wunused-variable]
---
Full diff: https://github.com/llvm/llvm-project/pull/86702.diff
1 Files Affected:
- (modified) mlir/lib/Conversion/ArithToSPIRV/ArithToSPIRV.cpp (-1)
``````````diff
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)) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/86702
More information about the Mlir-commits
mailing list