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.
1 parent 9036735 commit 3a84826Copy full SHA for 3a84826
flang/lib/Optimizer/CodeGen/CodeGen.cpp
@@ -495,7 +495,7 @@ struct FreeMemOpConversion : public FIROpConversion<fir::FreeMemOp> {
495
freemem.getLoc(), voidPtrTy(), operands[0]);
496
freemem->setAttr("callee", mlir::SymbolRefAttr::get(freeFunc));
497
rewriter.create<mlir::LLVM::CallOp>(
498
- loc, mlir::LLVM::LLVMVoidType::get(freemem.getContext()),
+ loc, mlir::TypeRange{},
499
mlir::ValueRange{bitcast}, freemem->getAttrs());
500
rewriter.eraseOp(freemem);
501
return success();
0 commit comments