diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-07-12 18:17:47 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-07-12 18:17:47 +0000 |
commit | a70282dcfac1788f94ff4596d2a893a36d3a95f6 (patch) | |
tree | 431f1c068ef2585c1d3ae820f3d6f086257ceee5 /utils/unittest | |
parent | ed42f1e58f1a7a83bdbb4429c716424a1c1583ee (diff) |
Silence a warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108169 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/unittest')
-rw-r--r-- | utils/unittest/googletest/gtest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/unittest/googletest/gtest.cc b/utils/unittest/googletest/gtest.cc index 74427af361..aa2d5bb925 100644 --- a/utils/unittest/googletest/gtest.cc +++ b/utils/unittest/googletest/gtest.cc @@ -3602,7 +3602,7 @@ void UnitTest::AddTestPartResult(TestPartResult::Type result_type, // the --gtest_catch_exceptions flags are specified. DebugBreak(); #else - *static_cast<int*>(NULL) = 1; + abort(); #endif // GTEST_OS_WINDOWS } else if (GTEST_FLAG(throw_on_failure)) { #if GTEST_HAS_EXCEPTIONS |