mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
C++11: Favor auto, range for. No functional change intended.
This commit is contained in:
+1
-1
@@ -467,7 +467,7 @@ private:
|
||||
void readModNames() {
|
||||
// mangled_name, BlockOptions
|
||||
const V3HierBlockOptSet& hierBlocks = v3Global.opt.hierBlocks();
|
||||
V3HierBlockOptSet::const_iterator hierIt = hierBlocks.find(v3Global.opt.topModule());
|
||||
const auto hierIt = vlstd::as_const(hierBlocks).find(v3Global.opt.topModule());
|
||||
UASSERT((hierIt != hierBlocks.end()) == v3Global.opt.hierChild(),
|
||||
"information of the top module must exist if --hierarchical-child is set");
|
||||
// Look at all modules, and store pointers to all module names
|
||||
|
||||
Reference in New Issue
Block a user