diff options
| author | Akira Hatanaka <ahatanaka@apple.com> | 2017-06-29 20:44:20 +0000 |
|---|---|---|
| committer | Akira Hatanaka <ahatanaka@apple.com> | 2017-06-29 20:44:20 +0000 |
| commit | ea7611b02c7da12017a16cfcd36289cc481261ce (patch) | |
| tree | 52fcba6934fd375978c7bd8672ee65b179448702 /clang/lib/Driver | |
| parent | 4c1bc656d0b41053d366c11f2f852f854f454253 (diff) | |
| download | bcm5719-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.cpp | 1 |
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, |

