This commit is contained in:
Paul 2020-07-21 13:18:45 -05:00
parent e2a81a382f
commit 38e1b57bc9
1 changed files with 2 additions and 2 deletions

View File

@ -2490,8 +2490,8 @@ struct SingleValueFlowForwardAnalyzer : ValueFlowForwardAnalyzer {
virtual bool isAlias(const Token* tok) const OVERRIDE {
if (value.isLifetimeValue())
return false;
for(const auto& m:{getVars(), getAliasedVars()}) {
for (const auto& p:m) {
for(const auto& m:{std::ref(getVars()), std::ref(getAliasedVars())}) {
for (const auto& p:m.get()) {
nonneg int varid = p.first;
const Variable* var = p.second;
if (tok->varId() == varid)