Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Unified Diff: runtime/third_party/jscre/pcre_internal.h

Issue 469423004: Fix clang compilation error in jscre. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/third_party/jscre/pcre_internal.h
diff --git a/runtime/third_party/jscre/pcre_internal.h b/runtime/third_party/jscre/pcre_internal.h
index 19eadad96c63d1ba412b07021e4b416187f2437f..92011f8eb821790c114fab857fcfff763f3a5f90 100644
--- a/runtime/third_party/jscre/pcre_internal.h
+++ b/runtime/third_party/jscre/pcre_internal.h
@@ -83,8 +83,8 @@ total length. */
#ifndef DFTABLES
// TODO(xxx): Hook this up to something that checks assertions.
-#define ASSERT(x) if (!(x)) *(reinterpret_cast<volatile int*>(NULL)) = NULL
-#define ASSERT_NOT_REACHED() *(reinterpret_cast<volatile int*>(NULL)) = NULL
+#define ASSERT(x) if (!(x)) abort()
+#define ASSERT_NOT_REACHED() abort()
#ifdef WIN32
#pragma warning(disable: 4232)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698