aboutsummaryrefslogtreecommitdiff
path: root/src-self-hosted/codegen.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-07-05 21:12:20 +0000
committerGitHub <noreply@github.com>2020-07-05 21:12:20 +0000
commit289eab9177443bdfadfe750afda8f7f32f43be0f (patch)
treeddf557298d623e567aefe9a7ace46b0ad63b9a1f /src-self-hosted/codegen.zig
parent0ae1157e4553d6f54e0d489daebb006c402e0f63 (diff)
parent3a89f214aa672c5844def1704845ad38ea60bdcd (diff)
downloadzig-289eab9177443bdfadfe750afda8f7f32f43be0f.tar.gz
zig-289eab9177443bdfadfe750afda8f7f32f43be0f.zip
Merge pull request #5786 from ziglang/std-hash-map
reimplement std.HashMap
Diffstat (limited to 'src-self-hosted/codegen.zig')
-rw-r--r--src-self-hosted/codegen.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src-self-hosted/codegen.zig b/src-self-hosted/codegen.zig
index 73758bda87..8885ed2825 100644
--- a/src-self-hosted/codegen.zig
+++ b/src-self-hosted/codegen.zig
@@ -705,7 +705,7 @@ const Function = struct {
}
fn resolveInst(self: *Function, inst: *ir.Inst) !MCValue {
- if (self.inst_table.getValue(inst)) |mcv| {
+ if (self.inst_table.get(inst)) |mcv| {
return mcv;
}
if (inst.cast(ir.Inst.Constant)) |const_inst| {
@@ -713,7 +713,7 @@ const Function = struct {
try self.inst_table.putNoClobber(inst, mcvalue);
return mcvalue;
} else {
- return self.inst_table.getValue(inst).?;
+ return self.inst_table.get(inst).?;
}
}