Skip to content

Commit b225f2d

Browse files
committed
Fix build failure on windows (NFC)
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
1 parent dc1a2cb commit b225f2d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Object/MachOUniversalWriter.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,8 @@ Error object::writeUniversalBinaryToStream(ArrayRef<Slice> Slices,
349349
return writeUniversalArchsToStream<MachO::fat_arch>(FatHeader, Slices, Out);
350350
break;
351351
}
352+
353+
llvm_unreachable("Invalid fat header type");
352354
}
353355

354356
Error object::writeUniversalBinary(ArrayRef<Slice> Slices,

0 commit comments

Comments
 (0)