[Mlir-commits] [mlir] 5cb6831 - [mlir] Fix build breakage introduced by D139026
Matthias Springer
llvmlistbot at llvm.org
Thu Dec 1 00:17:13 PST 2022
Author: Matthias Springer
Date: 2022-12-01T09:16:49+01:00
New Revision: 5cb68314f34151994266f2c5fc1e8a15d11708c3
URL: https://github.com/llvm/llvm-project/commit/5cb68314f34151994266f2c5fc1e8a15d11708c3
DIFF: https://github.com/llvm/llvm-project/commit/5cb68314f34151994266f2c5fc1e8a15d11708c3.diff
LOG: [mlir] Fix build breakage introduced by D139026
Added:
Modified:
mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp b/mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp
index 96a386e484e5a..53709a26f58ef 100644
--- a/mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp
+++ b/mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp
@@ -897,7 +897,8 @@ transform::ReplaceOp::apply(TransformResults &transformResults,
for (Operation *target : payload) {
if (target->getNumOperands() > 0)
return emitDefiniteFailure() << "expected target without operands";
- if (!target->hasTrait<IsIsolatedFromAbove>() && target->getNumRegions() > 0)
+ if (!target->hasTrait<OpTrait::IsIsolatedFromAbove>() &&
+ target->getNumRegions() > 0)
return emitDefiniteFailure()
<< "expected target that is isloated from above";
}
@@ -935,7 +936,7 @@ LogicalResult transform::ReplaceOp::verify() {
if (replacement->getNumOperands() > 0)
return replacement->emitOpError()
<< "expected replacement without operands";
- if (!replacement->hasTrait<IsIsolatedFromAbove>() &&
+ if (!replacement->hasTrait<OpTrait::IsIsolatedFromAbove>() &&
replacement->getNumRegions() > 0)
return replacement->emitOpError()
<< "expect op that is isolated from above";
More information about the Mlir-commits
mailing list