ExprEngine: Avoid endless recursion for struct members that have struct type

This commit is contained in:
Daniel Marjamäki 2019-10-05 18:29:41 +02:00
parent e686699294
commit 4e525e52ec
1 changed files with 5 additions and 3 deletions

View File

@ -1115,10 +1115,12 @@ static ExprEngine::ValuePtr createStructVal(const Scope *structScope, bool unini
continue; continue;
} }
} }
if (member.valueType() && member.valueType()->isIntegral()) {
ExprEngine::ValuePtr memberValue = createVariableValue(member, data); ExprEngine::ValuePtr memberValue = createVariableValue(member, data);
if (memberValue) if (memberValue)
structValue->member[member.name()] = memberValue; structValue->member[member.name()] = memberValue;
} }
}
return structValue; return structValue;
} }