We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
MemoryAllocation.cpp
1 parent 43222bd commit 354debaCopy full SHA for 354deba
flang/lib/Optimizer/Transforms/MemoryAllocation.cpp
@@ -200,7 +200,8 @@ class MemoryAllocationOpt
200
return keepStackAllocation(alloca, &func.front(), options);
201
});
202
203
- patterns.insert<AllocaOpConversion>(context, analysis.getReturns(func));
+ llvm::SmallVector<mlir::Operation *> returnOps = analysis.getReturns(func);
204
+ patterns.insert<AllocaOpConversion>(context, returnOps);
205
if (mlir::failed(
206
mlir::applyPartialConversion(func, target, std::move(patterns)))) {
207
mlir::emitError(func.getLoc(),
0 commit comments