Skip to content

Commit 525507d

Browse files
committed
Initialise another variable which can be detected as uninitialised
1 parent 2730513 commit 525507d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cgutils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3298,7 +3298,7 @@ static jl_cgval_t emit_setfield(jl_codectx_t &ctx,
32983298
Value *ptindex = ctx.builder.CreateInBoundsGEP(getInt8Ty(ctx.builder.getContext()), emit_bitcast(ctx, maybe_decay_tracked(ctx, addr), getInt8PtrTy(ctx.builder.getContext())), ConstantInt::get(getSizeTy(ctx.builder.getContext()), fsz));
32993299
if (needlock)
33003300
emit_lockstate_value(ctx, strct, true);
3301-
BasicBlock *ModifyBB;
3301+
BasicBlock *ModifyBB = NULL;
33023302
if (ismodifyfield) {
33033303
ModifyBB = BasicBlock::Create(ctx.builder.getContext(), "modify_xchg", ctx.f);
33043304
ctx.builder.CreateBr(ModifyBB);

0 commit comments

Comments
 (0)