mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
wasm: fix typo in CodeGen.zig
occured -> occurred
This commit is contained in:
parent
1a1b7a3afd
commit
ff125db53d
1 changed files with 2 additions and 2 deletions
|
|
@ -603,7 +603,7 @@ stack_alignment: u32 = 16,
|
||||||
|
|
||||||
const InnerError = error{
|
const InnerError = error{
|
||||||
OutOfMemory,
|
OutOfMemory,
|
||||||
/// An error occured when trying to lower AIR to MIR.
|
/// An error occurred when trying to lower AIR to MIR.
|
||||||
CodegenFail,
|
CodegenFail,
|
||||||
/// Can occur when dereferencing a pointer that points to a `Decl` of which the analysis has failed
|
/// Can occur when dereferencing a pointer that points to a `Decl` of which the analysis has failed
|
||||||
AnalysisFail,
|
AnalysisFail,
|
||||||
|
|
@ -4410,7 +4410,7 @@ fn airMulWithOverflow(self: *Self, inst: Air.Inst.Index) InnerError!WValue {
|
||||||
}
|
}
|
||||||
|
|
||||||
// We store the bit if it's overflowed or not in this. As it's zero-initialized
|
// We store the bit if it's overflowed or not in this. As it's zero-initialized
|
||||||
// we only need to update it if an overflow (or underflow) occured.
|
// we only need to update it if an overflow (or underflow) occurred.
|
||||||
const overflow_bit = try self.allocLocal(Type.initTag(.u1));
|
const overflow_bit = try self.allocLocal(Type.initTag(.u1));
|
||||||
const int_info = lhs_ty.intInfo(self.target);
|
const int_info = lhs_ty.intInfo(self.target);
|
||||||
const wasm_bits = toWasmBits(int_info.bits) orelse {
|
const wasm_bits = toWasmBits(int_info.bits) orelse {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue