Skip to content

Commit 4ea0e8c

Browse files
yuyichaoKristofferC
authored andcommitted
Fix use of CreateAlignedStore (#37388)
This is a compile error on 10+ and is probably triggering implicity conversion on LLVM 8 and 9. (cherry picked from commit 5acd7bd)
1 parent 0157e27 commit 4ea0e8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/codegen.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3462,7 +3462,7 @@ static void emit_upsilonnode(jl_codectx_t &ctx, ssize_t phic, jl_value_t *val)
34623462
if (!val) {
34633463
if (vi.boxroot) {
34643464
// memory optimization: eagerly clear this gc-root now
3465-
ctx.builder.CreateAlignedStore(ConstantPointerNull::get(cast<PointerType>(T_prjlvalue)), vi.boxroot, true, Align(sizeof(void*)));
3465+
ctx.builder.CreateAlignedStore(ConstantPointerNull::get(cast<PointerType>(T_prjlvalue)), vi.boxroot, Align(sizeof(void*)), true);
34663466
}
34673467
if (vi.pTIndex) {
34683468
// We don't care what the contents of the variable are, but it
@@ -3471,7 +3471,7 @@ static void emit_upsilonnode(jl_codectx_t &ctx, ssize_t phic, jl_value_t *val)
34713471
ctx.builder.CreateAlignedStore(
34723472
vi.boxroot ? ConstantInt::get(T_int8, 0x80) :
34733473
ConstantInt::get(T_int8, 0x01),
3474-
vi.pTIndex, true, Align(1));
3474+
vi.pTIndex, Align(1), true);
34753475
}
34763476
else if (vi.value.V && !vi.value.constant && vi.value.typ != jl_bottom_type) {
34773477
assert(vi.value.ispointer());

0 commit comments

Comments
 (0)