Skip to content

Commit 420f3ed

Browse files
committed
remove duplicate check in verifier
1 parent adb58ab commit 420f3ed

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

flang/lib/Optimizer/Dialect/FIROps.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3957,9 +3957,6 @@ llvm::LogicalResult fir::CopyOp::verify() {
39573957
mlir::Type destinationType = fir::unwrapRefType(getDestination().getType());
39583958
if (sourceType != destinationType)
39593959
return emitOpError("source and destination must have the same value type");
3960-
if (fir::hasDynamicSize(sourceType))
3961-
return emitOpError(
3962-
"source value type must have a compile time constant size");
39633960
return mlir::success();
39643961
}
39653962

0 commit comments

Comments
 (0)