aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/OperatorGen.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/OperatorGen.cc')
-rw-r--r--lib/CodeGen/OperatorGen.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/OperatorGen.cc b/lib/CodeGen/OperatorGen.cc
index 15667ea..2e0ee3a 100644
--- a/lib/CodeGen/OperatorGen.cc
+++ b/lib/CodeGen/OperatorGen.cc
@@ -22,7 +22,7 @@ CodeGen::OperatorResolution CodeGen::resolveOperator(
// Keep builtin CHAR comparisons ahead of STRING construction.
if (Right && Left->Kind == TypeKind::Char && Right->Kind == TypeKind::Char &&
Op != '&' && Formal && Formal->isString()) return false;
- return Lenient && !Param.IsByRef && !Param.IsArray && canImplicitlyConvert(Actual, Formal);
+ return Lenient && !Param.IsByRef && !Param.IsArray && implicitConversionRank(Actual, Formal) == 1;
};
// Builtin operations on exact operand types precede converted overloads.
// Raw C text is the exception: visible STRING operators supply text semantics.