diff options
author | David Blaikie <dblaikie@gmail.com> | 2012-01-22 01:17:04 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2012-01-22 01:17:04 +0000 |
commit | 6c33e1ce00e479831d6749ba5337d014d61147ef (patch) | |
tree | 1049649c1f8597e20c7153cb648e6fe5d19edfff /llvm/utils/unittest/googletest | |
parent | cb3433cd588395296cbb38a7ede935378a1d5c21 (diff) | |
download | bcm5719-llvm-6c33e1ce00e479831d6749ba5337d014d61147ef.tar.gz bcm5719-llvm-6c33e1ce00e479831d6749ba5337d014d61147ef.zip |
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
Diffstat (limited to 'llvm/utils/unittest/googletest')
-rw-r--r-- | llvm/utils/unittest/googletest/gtest.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/utils/unittest/googletest/gtest.cc b/llvm/utils/unittest/googletest/gtest.cc index 653892404f5..3fdff0a9a35 100644 --- a/llvm/utils/unittest/googletest/gtest.cc +++ b/llvm/utils/unittest/googletest/gtest.cc @@ -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. |