Skip to content

Commit 4ff7d31

Browse files
Update checkstl.cpp
1 parent 63feade commit 4ff7d31

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/checkstl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1091,7 +1091,7 @@ static const ValueFlow::Value* getInnerLifetime(const Token* tok,
10911091
if (!tok)
10921092
return nullptr;
10931093
for (const ValueFlow::Value& val : tok->values()) {
1094-
if (!val.isLocalLifetimeValue())
1094+
if (!val.isLocalLifetimeValue() && !val.isArgumentLifetimeValue())
10951095
continue;
10961096
if (contains({ValueFlow::Value::LifetimeKind::Address,
10971097
ValueFlow::Value::LifetimeKind::SubObject,

0 commit comments

Comments
 (0)