summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@apple.com>2017-06-29 20:44:20 +0000
committerAkira Hatanaka <ahatanaka@apple.com>2017-06-29 20:44:20 +0000
commitea7611b02c7da12017a16cfcd36289cc481261ce (patch)
tree52fcba6934fd375978c7bd8672ee65b179448702 /clang/lib/Driver
parent4c1bc656d0b41053d366c11f2f852f854f454253 (diff)
downloadbcm5719-llvm-ea7611b02c7da12017a16cfcd36289cc481261ce.tar.gz
bcm5719-llvm-ea7611b02c7da12017a16cfcd36289cc481261ce.zip
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 llvm-svn: 306739
Diffstat (limited to 'clang/lib/Driver')
-rw-r--r--clang/lib/Driver/ToolChains/Darwin.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Driver/ToolChains/Darwin.cpp b/clang/lib/Driver/ToolChains/Darwin.cpp
index 13cda0d0a1f..b1f359e8a1f 100644
--- a/clang/lib/Driver/ToolChains/Darwin.cpp
+++ b/clang/lib/Driver/ToolChains/Darwin.cpp
@@ -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,
OpenPOWER on IntegriCloud