提交 5c00a18e 编写于 作者: K Kuangyuan Chen 提交者: TensorFlower Gardener

Return failure if num_results is negative in tfrt_fallback.executeop

PiperOrigin-RevId: 564415721
上级 214dea84
......@@ -101,6 +101,7 @@ mlir::ParseResult ParseExecuteOpCommon(mlir::OpAsmParser &parser,
return mlir::failure();
num_results = attr.getValue().getSExtValue();
}
if (num_results < 0) return mlir::failure();
llvm::SmallVector<mlir::Type, 4> operand_types;
if (options.has_chain) operand_types.push_back(chain_type);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册