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 | 69c96d71dd31401b2fbef5837e37cb81b2a7c83a (patch) | |
tree | 1e523221ec2a48b65894833d938f25861876a1ff | |
parent | 6a32b6f0c088e4d2972cf5d208c54f42c2c52f85 (diff) | |
download | external_llvm-69c96d71dd31401b2fbef5837e37cb81b2a7c83a.zip external_llvm-69c96d71dd31401b2fbef5837e37cb81b2a7c83a.tar.gz external_llvm-69c96d71dd31401b2fbef5837e37cb81b2a7c83a.tar.bz2 |
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
-rw-r--r-- | utils/unittest/googletest/gtest.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/unittest/googletest/gtest.cc b/utils/unittest/googletest/gtest.cc index 6538924..3fdff0a 100644 --- a/utils/unittest/googletest/gtest.cc +++ b/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. |