aboutsummaryrefslogtreecommitdiff
path: root/src-self-hosted
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-06-10 09:54:03 -0400
committerGitHub <noreply@github.com>2019-06-10 09:54:03 -0400
commit12b2950bf294b3cfda0616b2e71b739cbda684d9 (patch)
tree25a5a2da7a6527cf61096e236baf26c58d1ccc05 /src-self-hosted
parentb7811d32690a9f3b4912635e16e6aa5ace25362c (diff)
parentb0648bfbd31cad73e00ee72b430dcf2c2907e08f (diff)
downloadzig-12b2950bf294b3cfda0616b2e71b739cbda684d9.tar.gz
zig-12b2950bf294b3cfda0616b2e71b739cbda684d9.zip
Merge pull request #2424 from daurnimator/single-linked-list
Add SinglyLinkedList
Diffstat (limited to 'src-self-hosted')
-rw-r--r--src-self-hosted/compilation.zig2
-rw-r--r--src-self-hosted/value.zig2
2 files changed, 2 insertions, 2 deletions
diff --git a/src-self-hosted/compilation.zig b/src-self-hosted/compilation.zig
index 5171b80ddc..bd20442d4b 100644
--- a/src-self-hosted/compilation.zig
+++ b/src-self-hosted/compilation.zig
@@ -160,7 +160,7 @@ pub const Compilation = struct {
/// it uses an optional pointer so that tombstone removals are possible
fn_link_set: event.Locked(FnLinkSet),
- pub const FnLinkSet = std.LinkedList(?*Value.Fn);
+ pub const FnLinkSet = std.TailQueue(?*Value.Fn);
windows_subsystem_windows: bool,
windows_subsystem_console: bool,
diff --git a/src-self-hosted/value.zig b/src-self-hosted/value.zig
index 328646d2cd..6908307c56 100644
--- a/src-self-hosted/value.zig
+++ b/src-self-hosted/value.zig
@@ -186,7 +186,7 @@ pub const Value = struct {
/// Path to the object file that contains this function
containing_object: Buffer,
- link_set_node: *std.LinkedList(?*Value.Fn).Node,
+ link_set_node: *std.TailQueue(?*Value.Fn).Node,
/// Creates a Fn value with 1 ref
/// Takes ownership of symbol_name