[llvm] r372416 - Fix MSVC "not all control paths return a value" warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 20 11:10:17 PDT 2019
Author: rksimon
Date: Fri Sep 20 11:10:17 2019
New Revision: 372416
URL: http://llvm.org/viewvc/llvm-project?rev=372416&view=rev
Log:
Fix MSVC "not all control paths return a value" warning. NFCI.
Modified:
llvm/trunk/lib/TextAPI/MachO/Platform.cpp
Modified: llvm/trunk/lib/TextAPI/MachO/Platform.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/TextAPI/MachO/Platform.cpp?rev=372416&r1=372415&r2=372416&view=diff
==============================================================================
--- llvm/trunk/lib/TextAPI/MachO/Platform.cpp (original)
+++ llvm/trunk/lib/TextAPI/MachO/Platform.cpp Fri Sep 20 11:10:17 2019
@@ -55,7 +55,8 @@ StringRef getPlatformName(PlatformKind P
case PlatformKind::bridgeOS:
return "bridgeOS";
}
+ llvm_unreachable("Unknown llvm.MachO.PlatformKind enum");
}
} // end namespace MachO.
-} // end namespace llvm.
\ No newline at end of file
+} // end namespace llvm.
More information about the llvm-commits
mailing list