DescriptionAdd __builtin_unreachable() to CRASH() when using Clang on Windows.
Currently, when building with Clang on Windows, NO_RETURN_DUE_TO_CRASH
is enabled, but CRASH is defined as __debugbreak, which Clang doesn't
recognise as a call that will never return. This causes
-Winvalid-noreturn to trigger warnings. This CL changes CRASH() to also
include __builtin_unreachable() when using Clang on Windows.
BUG=504698
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=198250
Patch Set 1 #
Total comments: 5
Patch Set 2 : #
Messages
Total messages: 12 (2 generated)
|