authorgravatar for eltociear@gmail.comIkko Ashimine <eltociear@gmail.com> 2022-07-31 03:43:02+09:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-07-31 13:00:37-07:00
logff125db53d8c18a63872ebdcdf6dd9653eb3f56b
tree1c7058733053a50ed3150180011a7dc0a6bbaadc
parent1a1b7a3afdd3edac9e8e351ce7e21c91404f8307

wasm: fix typo in CodeGen.zig

occured -> occurred

1 files changed, 2 insertions(+), 2 deletions(-)

src/arch/wasm/CodeGen.zig+2-2
...@@ -603,7 +603,7 @@ stack_alignment: u32 = 16,...@@ -603,7 +603,7 @@ stack_alignment: u32 = 16,
603603
604const InnerError = error{604const InnerError = error{
605 OutOfMemory,605 OutOfMemory,
606 /// An error occured when trying to lower AIR to MIR.606 /// An error occurred when trying to lower AIR to MIR.
607 CodegenFail,607 CodegenFail,
608 /// Can occur when dereferencing a pointer that points to a `Decl` of which the analysis has failed608 /// Can occur when dereferencing a pointer that points to a `Decl` of which the analysis has failed
609 AnalysisFail,609 AnalysisFail,
...@@ -4410,7 +4410,7 @@ fn airMulWithOverflow(self: *Self, inst: Air.Inst.Index) InnerError!WValue {...@@ -4410,7 +4410,7 @@ fn airMulWithOverflow(self: *Self, inst: Air.Inst.Index) InnerError!WValue {
4410 }4410 }
44114411
4412 // We store the bit if it's overflowed or not in this. As it's zero-initialized4412 // We store the bit if it's overflowed or not in this. As it's zero-initialized
4413 // we only need to update it if an overflow (or underflow) occured.4413 // we only need to update it if an overflow (or underflow) occurred.
4414 const overflow_bit = try self.allocLocal(Type.initTag(.u1));4414 const overflow_bit = try self.allocLocal(Type.initTag(.u1));
4415 const int_info = lhs_ty.intInfo(self.target);4415 const int_info = lhs_ty.intInfo(self.target);
4416 const wasm_bits = toWasmBits(int_info.bits) orelse {4416 const wasm_bits = toWasmBits(int_info.bits) orelse {