[PATCH] D59031: [scudo][standalone] Adding a stats class

Matt Morehouse via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 6 16:33:26 PST 2019


morehouse accepted this revision.
morehouse added inline comments.


================
Comment at: lib/scudo/standalone/stats.h:79
+    S->Next->Prev = S->Prev;
+    for (uptr I = 0; I < StatCount; I++)
+      add(static_cast<StatType>(I), S->get(static_cast<StatType>(I)));
----------------
Maybe:

```
for (StatType Ty = 0; Ty < StatCount; Ty++)
  add(Ty, S->get(Ty));
```


Repository:
  rCRT Compiler Runtime

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D59031/new/

https://reviews.llvm.org/D59031





More information about the llvm-commits mailing list