We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7670af5 commit 4149ec9Copy full SHA for 4149ec9
mlir/lib/Dialect/Arith/IR/ArithOps.cpp
@@ -207,11 +207,6 @@ void arith::ConstantOp::getAsmResultNames(
207
/// or float like.
208
LogicalResult arith::ConstantOp::verify() {
209
auto type = getType();
210
- // The value's type must match the return type.
211
- if (getValue().getType() != type) {
212
- return emitOpError() << "value type " << getValue().getType()
213
- << " must match return type: " << type;
214
- }
215
// Integer values must be signless.
216
if (llvm::isa<IntegerType>(type) &&
217
!llvm::cast<IntegerType>(type).isSignless())
0 commit comments