1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

Help GCC along with code that's actually unreachable.

Unfortunately I don't think there's a fix for this that will work upstream and
also satisfy Clang's -Wunreachable-code, which is a pity. But I'll give it some
more thought -perhaps there's some way out.

llvm-svn: 148645
This commit is contained in:
David Blaikie 2012-01-22 01:17:04 +00:00
parent eaca0c20ea
commit 05fe2f515d

View File

@ -2481,6 +2481,9 @@ static const char * TestPartResultTypeToString(TestPartResult::Type type) {
return "Failure\n"; return "Failure\n";
#endif #endif
} }
// All cases return, so this is unreachable but GCC doesn't know it
abort();
} }
// Prints a TestPartResult to a String. // Prints a TestPartResult to a String.