Fix compile when using EFI target (Fixes #6275)

This commit is contained in:
Peter Spiess-Knafl
2020-09-07 17:57:45 +02:00
committed by Veikka Tuominen
parent d7268cbb24
commit eca20b5e03

View File

@@ -67,7 +67,7 @@ fn EfiMain(handle: uefi.Handle, system_table: *uefi.tables.SystemTable) callconv
uefi.handle = handle;
uefi.system_table = system_table;
switch (@typeInfo(@TypeOf(read)).Fn.return_type.?) {
switch (@typeInfo(@TypeOf(root.main)).Fn.return_type.?) {
noreturn => {
root.main();
},