summaryrefslogtreecommitdiff
path: root/src/wast-parser-lexer-shared.cc
diff options
context:
space:
mode:
authorKarlSchimpf <karlschimpf@gmail.com>2017-06-28 15:38:12 -0700
committerGitHub <noreply@github.com>2017-06-28 15:38:12 -0700
commita4eb5ec8fca10dba70301db440cc2dd33ddc61fa (patch)
tree9a0a7b96eec947bd087983b506e9966175e7d838 /src/wast-parser-lexer-shared.cc
parent4835641a34511bba8877a0b08832e7d0aba75b9c (diff)
downloadwabt-a4eb5ec8fca10dba70301db440cc2dd33ddc61fa.tar.gz
wabt-a4eb5ec8fca10dba70301db440cc2dd33ddc61fa.tar.bz2
wabt-a4eb5ec8fca10dba70301db440cc2dd33ddc61fa.zip
Remove WABT_ZERO_MEMORY WABT_FAILED and WABT_SUCCEEDED macros. (#540)
* Remove WABT_ZERO_MEMORY WABT_FAILED and WABT_SUCCEEDED macros. * Add source generated files. * Add pod check.
Diffstat (limited to 'src/wast-parser-lexer-shared.cc')
-rw-r--r--src/wast-parser-lexer-shared.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wast-parser-lexer-shared.cc b/src/wast-parser-lexer-shared.cc
index 34bf7ebe..22111c41 100644
--- a/src/wast-parser-lexer-shared.cc
+++ b/src/wast-parser-lexer-shared.cc
@@ -55,7 +55,7 @@ void wast_format_error(SourceErrorHandler* error_handler,
size_t source_line_max_length = error_handler->source_line_max_length();
Result result = lexer->line_finder().GetSourceLine(
*loc, source_line_max_length, &source_line);
- if (WABT_FAILED(result)) {
+ if (Failed(result)) {
// If this fails, it means that we've probably screwed up the lexer. Blow
// up.
WABT_FATAL("error getting the source line.\n");