Author: ahatanak Date: Thu Jun 29 13:44:20 2017 New Revision: 306739 URL: http://llvm.org/viewvc/llvm-project?rev=306739&view=rev Log: Insert llvm_unreachable at the end of a function to silence gcc's -Werror=return-type error.
This is an attempt to fix the following failing bot: http://lab.llvm.org:8011/builders/ubuntu-gcc7.1-werror Modified: cfe/trunk/lib/Driver/ToolChains/Darwin.cpp Modified: cfe/trunk/lib/Driver/ToolChains/Darwin.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/ToolChains/Darwin.cpp?rev=306739&r1=306738&r2=306739&view=diff ============================================================================== --- cfe/trunk/lib/Driver/ToolChains/Darwin.cpp (original) +++ cfe/trunk/lib/Driver/ToolChains/Darwin.cpp Thu Jun 29 13:44:20 2017 @@ -1680,6 +1680,7 @@ bool Darwin::isAlignedAllocationUnavaila case WatchOSSimulator: // Earlier than 4.0. return TargetVersion < VersionTuple(4U, 0U, 0U); } + llvm_unreachable("Unsupported platform"); } void Darwin::addClangTargetOptions(const llvm::opt::ArgList &DriverArgs, _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits