We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac86c6a commit cf1ba81Copy full SHA for cf1ba81
1 file changed
lib/astutils.cpp
@@ -3678,7 +3678,7 @@ bool isGlobalData(const Token *expr)
3678
// TODO check if pointer points at local data
3679
const Variable *lhsvar = tok->astOperand1()->variable();
3680
const ValueType *lhstype = tok->astOperand1()->valueType();
3681
- if (lhsvar->isPointer() || !lhstype || lhstype == ValueType::Type::ITERATOR) {
+ if (lhsvar->isPointer() || !lhstype || lhstype->type == ValueType::Type::ITERATOR) {
3682
globalData = true;
3683
return ChildrenToVisit::none;
3684
}
0 commit comments