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

Unified Diff: third_party/re2/re2/testing/dump.cc

Issue 1516543002: Update re2 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updated update instructions Created 5 years 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 | « third_party/re2/re2/testing/dfa_test.cc ('k') | third_party/re2/re2/testing/exhaustive2_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/re2/re2/testing/dump.cc
diff --git a/third_party/re2/re2/testing/dump.cc b/third_party/re2/re2/testing/dump.cc
index 4bdf71465e2242dd4043099e276dad0d03b79af8..97030390df5e3396b52d7450e0ddbf16e99e715f 100644
--- a/third_party/re2/re2/testing/dump.cc
+++ b/third_party/re2/re2/testing/dump.cc
@@ -120,6 +120,8 @@ static void DumpRegexpAppending(Regexp* re, string* s) {
DumpRegexpAppending(re->sub()[0], s);
break;
case kRegexpCapture:
+ if (re->cap() == 0)
+ LOG(DFATAL) << "kRegexpCapture cap() == 0";
if (re->name()) {
s->append(*re->name());
s->append(":");
« no previous file with comments | « third_party/re2/re2/testing/dfa_test.cc ('k') | third_party/re2/re2/testing/exhaustive2_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698