mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 18:13:50 +02:00
C++11: Favor auto, range for. No functional change intended.
This commit is contained in:
+1
-2
@@ -118,8 +118,7 @@ private:
|
||||
flags.setNodeFlags(nodep);
|
||||
}
|
||||
void moveVars() {
|
||||
for (std::vector<AstVar*>::iterator it = m_varps.begin(); it != m_varps.end(); ++it) {
|
||||
AstVar* nodep = *it;
|
||||
for (AstVar* nodep : m_varps) {
|
||||
if (nodep->valuep()) clearOptimizable(nodep, "HasInitValue");
|
||||
if (!VarFlags(nodep).m_stdFuncAsn) clearStdOptimizable(nodep, "NoStdAssign");
|
||||
VarFlags flags(nodep);
|
||||
|
||||
Reference in New Issue
Block a user