mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-26 23:32:58 +00: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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148645 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6a32b6f0c0
commit
69c96d71dd
@ -2481,6 +2481,9 @@ static const char * TestPartResultTypeToString(TestPartResult::Type type) {
|
||||
return "Failure\n";
|
||||
#endif
|
||||
}
|
||||
|
||||
// All cases return, so this is unreachable but GCC doesn't know it
|
||||
abort();
|
||||
}
|
||||
|
||||
// Prints a TestPartResult to a String.
|
||||
|
Loading…
x
Reference in New Issue
Block a user