Skip to content

Commit 142e70f

Browse files
Update clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp
Co-authored-by: Amr Hesham <[email protected]>
1 parent 728ec84 commit 142e70f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1908,7 +1908,7 @@ mlir::Value ScalarExprEmitter::VisitCastExpr(CastExpr *ce) {
19081908
return {};
19091909
}
19101910

1911-
return builder.createIntToPtr(MiddleVal, DestCIRTy);
1911+
return builder.createIntToPtr(middleVal, destCIRTy);
19121912
}
19131913

19141914
case CK_ArrayToPointerDecay:

0 commit comments

Comments
 (0)