Skip to content

Commit

Permalink
fix(g2l): fix f32 in fconst
Browse files Browse the repository at this point in the history
  • Loading branch information
SynodicMonth committed Aug 12, 2024
1 parent abc13d9 commit 0f9c6b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ir/passes/global2local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ impl Global2Local {
ConstantKind::Undef => {}
ConstantKind::Zeroinit => {
if ty.is_float(ctx) {
let zero = Inst::fconst(ctx, 0.0, ty);
let zero = Inst::fconst(ctx, 0.0f32, ty);
let store = Inst::store(ctx, zero.result(ctx, 0), stack_slot);
insert_point.insert_before(ctx, zero);
insert_point.insert_before(ctx, store);
Expand Down

0 comments on commit 0f9c6b3

Please sign in to comment.