Internal Code Change
PiperOrigin-RevId: 514678702 Change-Id: I5b0089d905152ccb85022be395ed340e42586234
This commit is contained in:
parent
e1ee0fa3e1
commit
1a727c27aa
@ -311,7 +311,8 @@ GTEST_API_ WithoutMatchers GetWithoutMatchers();
|
|||||||
// crashes).
|
// crashes).
|
||||||
template <typename T>
|
template <typename T>
|
||||||
inline T Invalid() {
|
inline T Invalid() {
|
||||||
Assert(false, "", -1, "Internal error: attempt to return invalid value");
|
Assert(/*condition=*/false, /*file=*/"", /*line=*/-1,
|
||||||
|
"Internal error: attempt to return invalid value");
|
||||||
#if defined(__GNUC__) || defined(__clang__)
|
#if defined(__GNUC__) || defined(__clang__)
|
||||||
__builtin_unreachable();
|
__builtin_unreachable();
|
||||||
#elif defined(_MSC_VER)
|
#elif defined(_MSC_VER)
|
||||||
|
Loading…
Reference in New Issue
Block a user