Skip to content

Commit cf1ba81

Browse files
Update astutils.cpp
1 parent ac86c6a commit cf1ba81

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/astutils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3678,7 +3678,7 @@ bool isGlobalData(const Token *expr)
36783678
// TODO check if pointer points at local data
36793679
const Variable *lhsvar = tok->astOperand1()->variable();
36803680
const ValueType *lhstype = tok->astOperand1()->valueType();
3681-
if (lhsvar->isPointer() || !lhstype || lhstype == ValueType::Type::ITERATOR) {
3681+
if (lhsvar->isPointer() || !lhstype || lhstype->type == ValueType::Type::ITERATOR) {
36823682
globalData = true;
36833683
return ChildrenToVisit::none;
36843684
}

0 commit comments

Comments
 (0)