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:
parent
87ce31e19e
commit
581182ce98
1 changed files with 4 additions and 0 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue