diff options
| author | Alexander Potapenko <glider@google.com> | 2012-05-28 15:00:45 +0000 |
|---|---|---|
| committer | Alexander Potapenko <glider@google.com> | 2012-05-28 15:00:45 +0000 |
| commit | db892de5816789614e864503aa296a9c76c344b6 (patch) | |
| tree | d28ef897fc45665bf4dee9c8584dcf740ed83d63 | |
| parent | e1bbb2f34a70aa22d717bfef653c60ddb13adc2c (diff) | |
| download | bcm5719-llvm-db892de5816789614e864503aa296a9c76c344b6.tar.gz bcm5719-llvm-db892de5816789614e864503aa296a9c76c344b6.zip | |
More verbose check in AppendString.
llvm-svn: 157580
| -rw-r--r-- | compiler-rt/lib/asan/asan_printf.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/asan/asan_printf.cc b/compiler-rt/lib/asan/asan_printf.cc index 4f08f54c46a..69c34fa4f8f 100644 --- a/compiler-rt/lib/asan/asan_printf.cc +++ b/compiler-rt/lib/asan/asan_printf.cc @@ -88,7 +88,7 @@ static inline int AppendSignedDecimal(char **buff, const char *buff_end, static inline int AppendString(char **buff, const char *buff_end, const char *s) { // Avoid library functions like stpcpy here. - RAW_CHECK(s); + RAW_CHECK_MSG(s, "Error: passing a NULL pointer to AppendString\n"); int result = 0; for (; *s; s++) { result += AppendChar(buff, buff_end, *s); |

