]> granicus.if.org Git - clang/commitdiff
Insert llvm_unreachable at the end of a function to silence gcc's
authorAkira Hatanaka <ahatanaka@apple.com>
Thu, 29 Jun 2017 20:44:20 +0000 (20:44 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Thu, 29 Jun 2017 20:44:20 +0000 (20:44 +0000)
-Werror=return-type error.

This is an attempt to fix the following failing bot:

http://lab.llvm.org:8011/builders/ubuntu-gcc7.1-werror

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@306739 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/ToolChains/Darwin.cpp

index 13cda0d0a1fe7be34c7b9ef6e55136276c3e7bfd..b1f359e8a1fcf66ab05fe6a38e94475e6b654cbc 100644 (file)
@@ -1680,6 +1680,7 @@ bool Darwin::isAlignedAllocationUnavailable() const {
   case WatchOSSimulator: // Earlier than 4.0.
     return TargetVersion < VersionTuple(4U, 0U, 0U);
   }
+  llvm_unreachable("Unsupported platform");
 }
 
 void Darwin::addClangTargetOptions(const llvm::opt::ArgList &DriverArgs,