[Mlir-commits] [mlir] d0e97fe - [ArithToSPIRV] Fix a warning (#86702)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Tue Mar 26 10:44:24 PDT 2024


Author: Kazu Hirata
Date: 2024-03-26T10:44:20-07:00
New Revision: d0e97fe38b91dac909e6a53ab16d306e5ef0b512

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

LOG: [ArithToSPIRV] Fix a warning (#86702)

mlir/lib/Conversion/ArithToSPIRV/ArithToSPIRV.cpp:995:11: error:
  unused variable 'converter' [-Werror,-Wunused-variable]

Added: 
    

Modified: 
    mlir/lib/Conversion/ArithToSPIRV/ArithToSPIRV.cpp

Removed: 
    


################################################################################
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