Skip to content

Commit caa69cd

Browse files
Tzung-Han Juangerick-xanadu
andauthored
Update mlir/lib/Dialect/Bufferization/Transforms/OneShotModuleBufferize.cpp
Co-authored-by: erick-xanadu <[email protected]>
1 parent 4ba535b commit caa69cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/Bufferization/Transforms/OneShotModuleBufferize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ static void annotateEquivalentReturnBbArg(OpOperand &returnVal,
129129
static LogicalResult
130130
aliasingFuncOpBBArgsAnalysis(FunctionOpInterface funcOp, OneShotAnalysisState &state,
131131
FuncAnalysisState &funcState) {
132-
if (funcOp.getFunctionBody().empty() || funcOp.getNumResults() == 0) {
132+
if (funcOp.getFunctionBody().empty()) {
133133
// No function body available. Conservatively assume that every tensor
134134
// return value may alias with any tensor bbArg.
135135
for (const auto &inputIt : llvm::enumerate(funcOp.getArgumentTypes())) {

0 commit comments

Comments
 (0)