[Mlir-commits] [mlir] e08af17 - Revert "[MLIR] Add an assert in Operation::getOpResultImpl for out of range result"
Mehdi Amini
llvmlistbot at llvm.org
Sun Apr 9 21:22:26 PDT 2023
Author: Mehdi Amini
Date: 2023-04-09T21:21:56-07:00
New Revision: e08af170736271f022b2cab44d58326356ce1db8
URL: https://github.com/llvm/llvm-project/commit/e08af170736271f022b2cab44d58326356ce1db8
DIFF: https://github.com/llvm/llvm-project/commit/e08af170736271f022b2cab44d58326356ce1db8.diff
LOG: Revert "[MLIR] Add an assert in Operation::getOpResultImpl for out of range result"
This reverts commit 13b21971fbf5cd47dc3acb0c593aae8ae980c8d8.
Multiple bots are broken.
Added:
Modified:
mlir/include/mlir/IR/Operation.h
Removed:
################################################################################
diff --git a/mlir/include/mlir/IR/Operation.h b/mlir/include/mlir/IR/Operation.h
index 632e0677483e5..250ae959204a3 100644
--- a/mlir/include/mlir/IR/Operation.h
+++ b/mlir/include/mlir/IR/Operation.h
@@ -804,8 +804,6 @@ class alignas(8) Operation final
/// Returns a pointer to the use list for the given result, which may be
/// either inline or out-of-line.
detail::OpResultImpl *getOpResultImpl(unsigned resultNumber) {
- assert(resultNumber < getNumResults() &&
- "Result number is out of range for operation");
unsigned maxInlineResults = detail::OpResultImpl::getMaxInlineResults();
if (resultNumber < maxInlineResults)
return getInlineOpResult(resultNumber);
More information about the Mlir-commits
mailing list