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

Unified Diff: src/vector.h

Issue 2726553003: [wasm] Prepare WasmCompilationUnit for lazy compilation (Closed)
Patch Set: Minor fix in vector.h Created 3 years, 10 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
Index: src/vector.h
diff --git a/src/vector.h b/src/vector.h
index eb5808322c731f404c3ff2b2d1cfcc2490b78526..03e5d6cb1ea2f42162b878ead3773c46b68335fb 100644
--- a/src/vector.h
+++ b/src/vector.h
@@ -35,7 +35,7 @@ class Vector {
// spanning from and including 'from', to but not including 'to'.
Vector<T> SubVector(int from, int to) const {
DCHECK(0 <= from);
- SLOW_DCHECK(from < to);
+ SLOW_DCHECK(from <= to);
titzer 2017/03/03 09:21:44 Any reason this is a SLOW_DCHECK? I wonder if it's
Clemens Hammacher 2017/03/03 09:29:53 I don't know the reason for this. Maybe just to re
jochen (gone - plz use gerrit) 2017/05/03 10:47:22 Note that this change breaks gcc compilation. (I
Clemens Hammacher 2017/05/03 11:01:55 For reference: You are referring to this bug: http
SLOW_DCHECK(static_cast<unsigned>(to) <= static_cast<unsigned>(length_));
return Vector<T>(start() + from, to - from);
}

Powered by Google App Engine
This is Rietveld 408576698