Skip to content

Commit 12726ff

Browse files
Update valueflow.cpp
1 parent 5b70f39 commit 12726ff

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

lib/valueflow.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5861,6 +5861,12 @@ static void valueFlowSubFunction(const TokenList& tokenlist,
58615861
continue;
58625862
}
58635863

5864+
if (argvar->isReference() && isVariableChanged(argvar, settings)) {
5865+
argvalues.remove_if([](const ValueFlow::Value& v) {
5866+
return !v.isUninitValue();
5867+
});
5868+
}
5869+
58645870
if (argvalues.empty())
58655871
continue;
58665872

0 commit comments

Comments
 (0)