Skip to content

Commit 5d47b2a

Browse files
committed
Update LowerFunction.cpp
1 parent 28a5f7e commit 5d47b2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CIR/Dialect/Transforms/TargetLowering/LowerFunction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ mlir::Value createCoercedValue(mlir::Value Src, mlir::Type Ty,
336336
return CGF.buildAggregateBitcast(Src, Ty);
337337
}
338338

339-
if (auto alloca = findAlloca(Src.getDefiningOp()) {
339+
if (auto alloca = findAlloca(Src.getDefiningOp())) {
340340
auto tmpAlloca = createTmpAlloca(CGF, alloca.getLoc(), Ty);
341341
createMemCpy(CGF, tmpAlloca, alloca, SrcSize.getFixedValue());
342342
return CGF.getRewriter().create<LoadOp>(alloca.getLoc(),

0 commit comments

Comments
 (0)