aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Module.zig2
-rw-r--r--src/Sema.zig6
-rw-r--r--src/arch/riscv64/CodeGen.zig2
3 files changed, 5 insertions, 5 deletions
diff --git a/src/Module.zig b/src/Module.zig
index b4792b6e28..17c12438f7 100644
--- a/src/Module.zig
+++ b/src/Module.zig
@@ -3494,7 +3494,7 @@ fn freeExportList(gpa: Allocator, export_list: []*Export) void {
const data_has_safety_tag = @sizeOf(Zir.Inst.Data) != 8;
// TODO This is taking advantage of matching stage1 debug union layout.
// We need a better language feature for initializing a union with
-// a runtime known tag.
+// a runtime-known tag.
const Stage1DataLayout = extern struct {
data: [8]u8 align(@alignOf(Zir.Inst.Data)),
safety_tag: u8,
diff --git a/src/Sema.zig b/src/Sema.zig
index df0ab8ef9a..7501e79b3c 100644
--- a/src/Sema.zig
+++ b/src/Sema.zig
@@ -4326,7 +4326,7 @@ fn zirValidateDeref(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileErr
const msg = try sema.errMsg(
block,
src,
- "values of type '{}' must be comptime-known, but operand value is runtime known",
+ "values of type '{}' must be comptime-known, but operand value is runtime-known",
.{elem_ty.fmt(sema.mod)},
);
errdefer msg.destroy(sema.gpa);
@@ -22602,7 +22602,7 @@ fn validateRuntimeElemAccess(
const msg = try sema.errMsg(
block,
elem_index_src,
- "values of type '{}' must be comptime-known, but index value is runtime known",
+ "values of type '{}' must be comptime-known, but index value is runtime-known",
.{parent_ty.fmt(sema.mod)},
);
errdefer msg.destroy(sema.gpa);
@@ -27177,7 +27177,7 @@ fn cmpNumeric(
};
// TODO handle comparisons against lazy zero values
- // Some values can be compared against zero without being runtime known or without forcing
+ // Some values can be compared against zero without being runtime-known or without forcing
// a full resolution of their value, for example `@sizeOf(@Frame(function))` is known to
// always be nonzero, and we benefit from not forcing the full evaluation and stack frame layout
// of this function if we don't need to.
diff --git a/src/arch/riscv64/CodeGen.zig b/src/arch/riscv64/CodeGen.zig
index 1dad5a4ac6..87e81748f9 100644
--- a/src/arch/riscv64/CodeGen.zig
+++ b/src/arch/riscv64/CodeGen.zig
@@ -1769,7 +1769,7 @@ fn airCall(self: *Self, inst: Air.Inst.Index, modifier: std.builtin.CallOptions.
return self.fail("TODO implement calling bitcasted functions", .{});
}
} else {
- return self.fail("TODO implement calling runtime known function pointer", .{});
+ return self.fail("TODO implement calling runtime-known function pointer", .{});
}
} else if (self.bin_file.cast(link.File.Coff)) |_| {
return self.fail("TODO implement calling in COFF for {}", .{self.target.cpu.arch});