1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-05 16:56:04 +02:00

Minor performance optimization.

Change-Id: I19b1b8f55c8b62fa95eede5318d4b73291dfbd70
This commit is contained in:
Sergey Prigogin 2017-03-13 18:56:42 -07:00
parent 87ce31e19e
commit 581182ce98

View file

@ -44,6 +44,7 @@ import org.eclipse.cdt.core.dom.ast.IArrayType;
import org.eclipse.cdt.core.dom.ast.IBasicType;
import org.eclipse.cdt.core.dom.ast.IBinding;
import org.eclipse.cdt.core.dom.ast.IPointerType;
import org.eclipse.cdt.core.dom.ast.IProblemBinding;
import org.eclipse.cdt.core.dom.ast.ISemanticProblem;
import org.eclipse.cdt.core.dom.ast.IType;
import org.eclipse.cdt.core.dom.ast.IValue;
@ -388,6 +389,9 @@ public class EvalUnary extends CPPDependentEvaluation {
if (argument == fArgument && binding == fAddressOfQualifiedNameBinding)
return this;
if (binding instanceof IProblemBinding)
return EvalFixed.INCOMPLETE;
return new EvalUnary(fOperator, argument, binding, getTemplateDefinition());
}