diff options
author | Ian Rogers <irogers@google.com> | 2014-09-30 15:43:59 -0700 |
---|---|---|
committer | Ian Rogers <irogers@google.com> | 2014-09-30 15:43:59 -0700 |
commit | 07140838a3ee44a6056cacdc78f2930e019107da (patch) | |
tree | 4f344df6ec2612d8ddbf0a00e2b49a39a7501249 /runtime/base/macros.h | |
parent | f9098ea6d7326b4d8de2860d18adf74046b80855 (diff) | |
download | art-07140838a3ee44a6056cacdc78f2930e019107da.zip art-07140838a3ee44a6056cacdc78f2930e019107da.tar.gz art-07140838a3ee44a6056cacdc78f2930e019107da.tar.bz2 |
Enable -Wunreachable-code
Caught bugs in DeoptimizeStackVisitor and assemble_x86 SIB encoding.
Add UNREACHABLE macro to document code expected to be unreachable.
Bug: 17731047
Change-Id: I2e363fe5b38a1246354d98be18c902a6031c0b9e
Diffstat (limited to 'runtime/base/macros.h')
-rw-r--r-- | runtime/base/macros.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/base/macros.h b/runtime/base/macros.h index fae9271..b66d528 100644 --- a/runtime/base/macros.h +++ b/runtime/base/macros.h @@ -179,6 +179,7 @@ char (&ArraySizeHelper(T (&array)[N]))[N]; #define WARN_UNUSED __attribute__((warn_unused_result)) template<typename T> void UNUSED(const T&) {} +#define UNREACHABLE __builtin_unreachable // Annotalysis thread-safety analysis support. #if defined(__SUPPORT_TS_ANNOTATION__) || defined(__clang__) |