From 48c9570c8c6e116643894ab5cad7e59e83776ada Mon Sep 17 00:00:00 2001 From: Jerry Wu Date: Fri, 11 Aug 2023 16:53:33 +0000 Subject: [PATCH] Fix stack out of scope --- .../iree/compiler/Codegen/Common/DecomposeBatchMmt4DOps.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/src/iree/compiler/Codegen/Common/DecomposeBatchMmt4DOps.cpp b/compiler/src/iree/compiler/Codegen/Common/DecomposeBatchMmt4DOps.cpp index d3f366b12006..3466ad89541d 100644 --- a/compiler/src/iree/compiler/Codegen/Common/DecomposeBatchMmt4DOps.cpp +++ b/compiler/src/iree/compiler/Codegen/Common/DecomposeBatchMmt4DOps.cpp @@ -37,7 +37,8 @@ struct ConvertBatchMmt4DtoMmt4DPattern if (outType.getShape()[0] != 1) { return failure(); } - auto reducedOutType = RankedTensorType::Builder(outType).dropDim(0); + RankedTensorType reducedOutType = + RankedTensorType::Builder(outType).dropDim(0); Value reducedOut; Value initTensor; // If the init operand is a linalg.fill op, create a new linalg.fill op with