Skip to content

Commit 936a331

Browse files
RKSimonhyp
authored andcommitted
Fix MSVC "not all control paths return a value" warning. NFCI.
llvm-svn: 372416
1 parent ac940f1 commit 936a331

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/TextAPI/MachO/Platform.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ StringRef getPlatformName(PlatformKind Platform) {
5555
case PlatformKind::bridgeOS:
5656
return "bridgeOS";
5757
}
58+
llvm_unreachable("Unknown llvm.MachO.PlatformKind enum");
5859
}
5960

6061
} // end namespace MachO.
61-
} // end namespace llvm.
62+
} // end namespace llvm.

0 commit comments

Comments
 (0)