Skip to content

Commit 1083417

Browse files
simplify getNullValue call
Co-authored-by: Jameson Nash <[email protected]>
1 parent 4c7a750 commit 1083417

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/cgutils.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1611,8 +1611,7 @@ static Value *null_pointer_cmp(jl_codectx_t &ctx, Value *v)
16111611
return ctx.builder.CreateICmpNE(
16121612
v,
16131613
ctx.builder.CreateAddrSpaceCast(
1614-
Constant::getNullValue(ctx.builder.getPtrTy(AddressSpace::Derived)),
1615-
PointerType::get(T, T->getPointerAddressSpace())));
1614+
Constant::getNullValue(ctx.builder.getPtrTy(0)), T);
16161615
}
16171616

16181617

0 commit comments

Comments
 (0)