Internal: Add C++20ish reverse_view for range loops. No functional change (#3388).

Signed-off-by: HungMingWu <[email protected]>
This commit is contained in:
HungMingWu
2022-04-18 13:03:56 -04:00
committed by GitHub
parent 7bfc1a00a7
commit 880a9be3b1
8 changed files with 34 additions and 23 deletions
+1 -2
View File
@@ -190,8 +190,7 @@ private:
// Iterate through all modules in bottom-up order.
// Make a final inlining decision for each.
for (auto it = m_allMods.rbegin(); it != m_allMods.rend(); ++it) {
AstNodeModule* const modp = *it;
for (AstNodeModule* const modp : vlstd::reverse_view(m_allMods)) {
// If we're going to inline some modules into this one,
// update user4 (statement count) to reflect that: