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:
parent
1204bf21b1
commit
9e4c36a7ab
1 changed files with 1 additions and 1 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Reference in a new issue