link: cleanup lazy symbols

We now only update one lazy symbol in flushModule.
Updating the rest from updateDecl is TBD.
This commit is contained in:
Jacob Young
2023-04-03 06:02:38 -04:00
committed by Jakub Konka
parent f0d13489f8
commit 562170681a
5 changed files with 158 additions and 163 deletions

View File

@@ -555,7 +555,7 @@ pub const Decl = struct {
_,
pub fn init(oi: ?Index) OptionalIndex {
return oi orelse .none;
return @intToEnum(OptionalIndex, @enumToInt(oi orelse return .none));
}
pub fn unwrap(oi: OptionalIndex) ?Index {