mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 397205. Fixed StackOverflowError in EvalFunctionCall.getValue()
This commit is contained in:
parent
f7f56bb08e
commit
cf42513ae6
1 changed files with 5 additions and 3 deletions
|
@ -143,9 +143,11 @@ public class EvalFunctionCall extends CPPEvaluation {
|
|||
@Override
|
||||
public IValue getValue(IASTNode point) {
|
||||
ICPPEvaluation eval = computeForFunctionCall(Value.MAX_RECURSION_DEPTH, point);
|
||||
if (eval instanceof EvalFixed)
|
||||
return ((EvalFixed) eval).getValue();
|
||||
eval = new EvalFixed(getTypeOrFunctionSet(point), PRVALUE, eval.getValue(point));
|
||||
if (eval != this) {
|
||||
if (eval instanceof EvalFixed)
|
||||
return ((EvalFixed) eval).getValue();
|
||||
eval = new EvalFixed(getTypeOrFunctionSet(point), PRVALUE, eval.getValue(point));
|
||||
}
|
||||
return Value.create(eval);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue