Skip to content

Commit

Permalink
Fix emit_sizeof's use of emit_typeof
Browse files Browse the repository at this point in the history
  • Loading branch information
kpamnany committed Nov 14, 2023
1 parent bb00c16 commit 7e4c9c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cgutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1132,7 +1132,7 @@ static Value *emit_sizeof(jl_codectx_t &ctx, const jl_cgval_t &p)
ConstantInt::get(getInt8Ty(ctx.builder.getContext()), 0));
ctx.builder.CreateCondBr(isboxed, dynloadBB, postBB);
ctx.builder.SetInsertPoint(dynloadBB);
Value *datatype = emit_typeof(p.V);
Value *datatype = emit_typeof(ctx, p.V, false);
Value *dyn_size = emit_datatype_size(ctx, datatype);
ctx.builder.CreateBr(postBB);
dynloadBB = ctx.builder.GetInsertBlock(); // could have changed
Expand Down

0 comments on commit 7e4c9c7

Please sign in to comment.