[Mlir-commits] [mlir] d3b1796 - [mlir] Try to work around ambiguity in older clang versions
Benjamin Kramer
llvmlistbot at llvm.org
Tue Jun 14 14:59:10 PDT 2022
Author: Benjamin Kramer
Date: 2022-06-14T23:57:57+02:00
New Revision: d3b179684205ef8ba7bc5a388e013a813983fc8a
URL: https://github.com/llvm/llvm-project/commit/d3b179684205ef8ba7bc5a388e013a813983fc8a
DIFF: https://github.com/llvm/llvm-project/commit/d3b179684205ef8ba7bc5a388e013a813983fc8a.diff
LOG: [mlir] Try to work around ambiguity in older clang versions
mlir/lib/Dialect/Arithmetic/IR/InferIntRangeInterfaceImpls.cpp:366:10: error: chosen constructor is explicit in copy-initialization
return {leftVal, rightVal};
^~~~~~~~~~~~~~~~~~~
Added:
Modified:
mlir/lib/Dialect/Arithmetic/IR/InferIntRangeInterfaceImpls.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Arithmetic/IR/InferIntRangeInterfaceImpls.cpp b/mlir/lib/Dialect/Arithmetic/IR/InferIntRangeInterfaceImpls.cpp
index 5e870c035764..f54ada4f5dce 100644
--- a/mlir/lib/Dialect/Arithmetic/IR/InferIntRangeInterfaceImpls.cpp
+++ b/mlir/lib/Dialect/Arithmetic/IR/InferIntRangeInterfaceImpls.cpp
@@ -363,7 +363,7 @@ widenBitwiseBounds(const ConstantIntRanges &bound) {
unsigned
diff eringBits = bitwidth - (leftVal ^ rightVal).countLeadingZeros();
leftVal.clearLowBits(
diff eringBits);
rightVal.setLowBits(
diff eringBits);
- return {leftVal, rightVal};
+ return std::make_tuple(std::move(leftVal), std::move(rightVal));
}
void arith::AndIOp::inferResultRanges(ArrayRef<ConstantIntRanges> argRanges,
More information about the Mlir-commits
mailing list