Fix clang 11 warning. No functional change intended.

This commit is contained in:
Wilson Snyder 2020-10-13 18:26:51 -04:00
parent 0a9ae154be
commit 3d8dc2774b
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,7 @@ string V3HierBlock::hierGenerated(bool withDir) const {
string V3HierBlock::vFileIfNecessary() const {
const string filename = V3Os::filenameRealPath(m_modp->fileline()->filename());
for (const string v : v3Global.opt.vFiles()) {
for (const string& v : v3Global.opt.vFiles()) {
// Already listed in vFiles, so no need to add the file.
if (filename == V3Os::filenameRealPath(v)) return "";
}