forked from OSchip/llvm-project
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:
parent
4c1bc656d0
commit
ea7611b02c
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue