1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 547533 - Avoid ClassCastException in EvalTypeId.getValue()

Change-Id: I614b67a7b53b7075b702911a33ba8440a187614e
This commit is contained in:
Nathan Ridge 2019-05-23 21:00:15 -04:00
parent 1204bf21b1
commit 9e4c36a7ab

View file

@ -158,7 +158,7 @@ public class EvalTypeId extends CPPDependentEvaluation {
return CompositeValue.create(classType);
} else if (ctor == AGGREGATE_INITIALIZATION) {
return CompositeValue.create(new EvalInitList(fArguments, getTemplateDefinition()), classType);
} else if (ctor != null) {
} else if (ctor instanceof ICPPConstructor) {
EvalConstructor evalCtor = new EvalConstructor(classType, (ICPPConstructor) ctor, fArguments,
getTemplateDefinition());
ICPPEvaluation computedEvalCtor = evalCtor.computeForFunctionCall(new ActivationRecord(),