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

Unified Diff: src/extensions/statistics-extension.cc

Issue 2758563002: [gn] Enable stricter build flags (Closed)
Patch Set: Address comment Created 3 years, 9 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 | « src/debug/debug.cc ('k') | src/field-index-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/extensions/statistics-extension.cc
diff --git a/src/extensions/statistics-extension.cc b/src/extensions/statistics-extension.cc
index ad412975cf489e4b62eb68ed3cd73825e8a19cff..3e49c527e30028035e096555446fcebb2a54aaf8 100644
--- a/src/extensions/statistics-extension.cc
+++ b/src/extensions/statistics-extension.cc
@@ -144,7 +144,7 @@ void StatisticsExtension::GetCounters(
HeapObject* obj;
int reloc_info_total = 0;
int source_position_table_total = 0;
- while ((obj = iterator.next())) {
+ while ((obj = iterator.next()) != nullptr) {
if (obj->IsCode()) {
Code* code = Code::cast(obj);
reloc_info_total += code->relocation_info()->Size();
« no previous file with comments | « src/debug/debug.cc ('k') | src/field-index-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698