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
This commit is contained in:
Akira Hatanaka 2017-06-29 20:44:20 +00:00
parent 4c1bc656d0
commit ea7611b02c
1 changed files with 1 additions and 0 deletions

View 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,