Skip to content

Commit 6f5559b

Browse files
fix BestOverloadFunctionMatch to handle rvalues
1 parent 7a7ad5e commit 6f5559b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/CppInterOp/CppInterOp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1142,7 +1142,7 @@ BestOverloadFunctionMatch(const std::vector<TCppFunction_t>& candidates,
11421142
for (auto i : arg_types) {
11431143
QualType Type = QualType::getFromOpaquePtr(i.m_Type);
11441144
ExprValueKind ExprKind = ExprValueKind::VK_PRValue;
1145-
if (Type->isReferenceType())
1145+
if (Type->isLValueReferenceType())
11461146
ExprKind = ExprValueKind::VK_LValue;
11471147

11481148
new (&Exprs[idx]) OpaqueValueExpr(SourceLocation::getFromRawEncoding(1),

0 commit comments

Comments
 (0)