Skip to content

Commit 4c1ddfa

Browse files
committed
fix assertion
1 parent b719380 commit 4c1ddfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/include/clang/Sema/Overload.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ class Sema;
415415
// If we are not performing a reference binding, we can skip comparing
416416
// the types, which has a noticeable performance impact.
417417
if (!ReferenceBinding) {
418-
assert(C.hasSameType(getFromType(), getToType(2)));
418+
assert(First || C.hasSameUnqualifiedType(getFromType(), getToType(2)));
419419
return true;
420420
}
421421
if (!C.hasSameType(getFromType(), getToType(2)))

0 commit comments

Comments
 (0)