Skip to content

Commit

Permalink
Fix build failure on windows (NFC)
Browse files Browse the repository at this point in the history
C:\buildbot\mlir-x64-windows-ninja\llvm-project\llvm\lib\Object\MachOUniversalWriter.cpp(352) : error C2220: the following warning is treated as an error
C:\buildbot\mlir-x64-windows-ninja\llvm-project\llvm\lib\Object\MachOUniversalWriter.cpp(352) : warning C4715: 'llvm::object::writeUniversalBinaryToStream': not all control paths return a value
  • Loading branch information
DamonFool committed Oct 1, 2023
1 parent dc1a2cb commit b225f2d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions llvm/lib/Object/MachOUniversalWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,8 @@ Error object::writeUniversalBinaryToStream(ArrayRef<Slice> Slices,
return writeUniversalArchsToStream<MachO::fat_arch>(FatHeader, Slices, Out);
break;
}

llvm_unreachable("Invalid fat header type");
}

Error object::writeUniversalBinary(ArrayRef<Slice> Slices,
Expand Down

0 comments on commit b225f2d

Please sign in to comment.