diff --git a/mlir/include/mlir/IR/FunctionSupport.h b/mlir/include/mlir/IR/FunctionSupport.h --- a/mlir/include/mlir/IR/FunctionSupport.h +++ b/mlir/include/mlir/IR/FunctionSupport.h @@ -389,8 +389,6 @@ if (ArrayAttr argAttrs = getAllArgAttrs()) { auto argAttrRange = argAttrs.template getAsRange(); result.append(argAttrRange.begin(), argAttrRange.end()); - } else { - result.resize(getNumArguments()); } }