fix use of uninitialized variable in alignCast
This commit is contained in:
parent
7ee00730ac
commit
faaaf88327
|
@ -14732,6 +14732,7 @@ static IrInstruction *ir_align_cast(IrAnalyze *ira, IrInstruction *target, uint3
|
||||||
|
|
||||||
if (target_type->id == TypeTableEntryIdPointer) {
|
if (target_type->id == TypeTableEntryIdPointer) {
|
||||||
result_type = adjust_ptr_align(ira->codegen, target_type, align_bytes);
|
result_type = adjust_ptr_align(ira->codegen, target_type, align_bytes);
|
||||||
|
old_align_bytes = target_type->data.pointer.alignment;
|
||||||
} else if (target_type->id == TypeTableEntryIdFn) {
|
} else if (target_type->id == TypeTableEntryIdFn) {
|
||||||
FnTypeId fn_type_id = target_type->data.fn.fn_type_id;
|
FnTypeId fn_type_id = target_type->data.fn.fn_type_id;
|
||||||
old_align_bytes = fn_type_id.alignment;
|
old_align_bytes = fn_type_id.alignment;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user