1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

Minor performance optimization.

Change-Id: I9274509f013abda8a7e7950caf204c7398a7476c
This commit is contained in:
Sergey Prigogin 2016-12-16 13:34:53 -08:00
parent 24c71972ba
commit d9a08b007e

View file

@ -839,7 +839,8 @@ public class TemplateArgumentDeduction {
// Try to deduce from the original argument type, but if it fails, fall back to the simplified
// argument type.
return fromType(p.getTypeValue(), a.getOriginalTypeValue(), false, point)
|| fromType(p.getTypeValue(), a.getTypeValue(), false, point);
|| (a.getTypeValue() != a.getOriginalTypeValue()
&& fromType(p.getTypeValue(), a.getTypeValue(), false, point));
}
private boolean fromType(IType p, IType a, boolean allowCVQConversion, IASTNode point) throws DOMException {