address review feedback

This commit is contained in:
Vexu
2020-08-16 21:51:05 +03:00
parent ece4a2fc51
commit 13b2f1e90b
5 changed files with 40 additions and 21 deletions

View File

@@ -2433,7 +2433,6 @@ fn wrapOptional(self: *Module, scope: *Scope, dest_type: Type, inst: *Inst) !*In
return self.constInst(scope, inst.src, .{ .ty = dest_type, .val = val });
}
// TODO how do we get the result location
const b = try self.requireRuntimeBlock(scope, inst.src);
return self.addUnOp(b, inst.src, dest_type, .wrap_optional, inst);
}