diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2023-04-05 03:02:42 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-05 03:02:42 +0200 |
| commit | 5ea6e78943453e145366c8860cb9c8f9684f9b31 (patch) | |
| tree | c9fc4b4ffe6636ce839fa3f24328667d4aed8ee1 /src/Module.zig | |
| parent | 3a8362e751d210f1cecfce7c33cae2e582bd4b94 (diff) | |
| parent | 83b7dbe52f75161a2ac6f5d8f39b275fd9473c15 (diff) | |
| download | zig-5ea6e78943453e145366c8860cb9c8f9684f9b31.tar.gz zig-5ea6e78943453e145366c8860cb9c8f9684f9b31.zip | |
Merge pull request #15162 from jacobly0/x86_64-start
x86_64: get enough things working to enable full `start.zig` logic
Diffstat (limited to 'src/Module.zig')
| -rw-r--r-- | src/Module.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Module.zig b/src/Module.zig index 9dab3edccd..70732369ca 100644 --- a/src/Module.zig +++ b/src/Module.zig @@ -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 { |
