[Mlir-commits] [mlir] 5671f02 - Fix unused variable warning.
Sterling Augustine
llvmlistbot at llvm.org
Tue Jul 11 14:55:24 PDT 2023
Author: Sterling Augustine
Date: 2023-07-11T14:54:29-07:00
New Revision: 5671f023042b558d38c3b777ee4ae0ad037b1867
URL: https://github.com/llvm/llvm-project/commit/5671f023042b558d38c3b777ee4ae0ad037b1867
DIFF: https://github.com/llvm/llvm-project/commit/5671f023042b558d38c3b777ee4ae0ad037b1867.diff
LOG: Fix unused variable warning.
Added:
Modified:
mlir/lib/Dialect/Arith/Transforms/EmulateUnsupportedFloats.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Arith/Transforms/EmulateUnsupportedFloats.cpp b/mlir/lib/Dialect/Arith/Transforms/EmulateUnsupportedFloats.cpp
index e3cfe9813171bc..f283ab7673b469 100644
--- a/mlir/lib/Dialect/Arith/Transforms/EmulateUnsupportedFloats.cpp
+++ b/mlir/lib/Dialect/Arith/Transforms/EmulateUnsupportedFloats.cpp
@@ -79,10 +79,9 @@ LogicalResult EmulateFloatPattern::match(Operation *op) const {
void EmulateFloatPattern::rewrite(Operation *op, ArrayRef<Value> operands,
ConversionPatternRewriter &rewriter) const {
Location loc = op->getLoc();
- TypeConverter *converter = getTypeConverter();
SmallVector<Type> resultTypes;
assert(
- succeeded(converter->convertTypes(op->getResultTypes(), resultTypes)) &&
+ succeeded(getTypeConverter()->convertTypes(op->getResultTypes(), resultTypes)) &&
"type conversions shouldn't fail in this pass");
Operation *expandedOp =
rewriter.create(loc, op->getName().getIdentifier(), operands, resultTypes,
More information about the Mlir-commits
mailing list