ExprEngine: Avoid endless recursion for struct members that have struct type
This commit is contained in:
parent
e686699294
commit
4e525e52ec
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue