Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
cleanup
  • Loading branch information
bruteforceboy committed Nov 25, 2024
commit 92bf363f3fc70426d9b76ae16cc579959fdcc213
Original file line number Diff line number Diff line change
Expand Up @@ -336,11 +336,10 @@ mlir::Value createCoercedValue(mlir::Value Src, mlir::Type Ty,
return CGF.buildAggregateBitcast(Src, Ty);
}

auto &bld = CGF.getRewriter();
auto alloca = createTmpAlloca(CGF, Src.getLoc(), Ty);
Src = findAlloca(Src.getDefiningOp());
createMemCpy(CGF, alloca, Src, SrcSize.getFixedValue());
return bld.create<LoadOp>(Src.getLoc(), alloca.getResult());
return CGF.getRewriter().create<LoadOp>(Src.getLoc(), alloca.getResult());
}

mlir::Value emitAddressAtOffset(LowerFunction &LF, mlir::Value addr,
Expand Down