[Mlir-commits] [mlir] 32627f4 - [mlir] Handle unused variable when assertions are disabled.
Tres Popp
llvmlistbot at llvm.org
Tue Jul 13 08:31:29 PDT 2021
Author: Tres Popp
Date: 2021-07-13T17:31:12+02:00
New Revision: 32627f4ab4b717dc1932141db99605b723037bf8
URL: https://github.com/llvm/llvm-project/commit/32627f4ab4b717dc1932141db99605b723037bf8
DIFF: https://github.com/llvm/llvm-project/commit/32627f4ab4b717dc1932141db99605b723037bf8.diff
LOG: [mlir] Handle unused variable when assertions are disabled.
Added:
Modified:
mlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferize.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferize.cpp b/mlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferize.cpp
index 7367596e2b21..e49b02058e1a 100644
--- a/mlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferize.cpp
+++ b/mlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferize.cpp
@@ -2635,6 +2635,7 @@ static void layoutPostProcessing(ModuleOp moduleOp) {
SmallVector<FuncOp> orderedFuncOps;
DenseMap<FuncOp, DenseSet<Operation *>> callerMap;
auto res = getFuncOpsOrderedByCalls(moduleOp, orderedFuncOps, callerMap);
+ (void) res;
assert(succeeded(res) && "unexpected getFuncOpsOrderedByCalls failure");
for (FuncOp funcOp : orderedFuncOps) {
More information about the Mlir-commits
mailing list