Skip to content

Commit 18473ca

Browse files
committed
improve comment wording before diagnostics
1 parent 07392e1 commit 18473ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Sema/SemaExprCXX.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2753,7 +2753,7 @@ static bool resolveAllocationOverloadInterior(
27532753
if (Diagnose) {
27542754
// If this is an allocation of the form 'new (p) X' for some object
27552755
// pointer p (or an expression that will decay to such a pointer),
2756-
// diagnose potential error.
2756+
// diagnose the reason for the error.
27572757
if (!R.isClassLookup() && Args.size() == 2 &&
27582758
(Args[1]->getType()->isObjectPointerType() ||
27592759
Args[1]->getType()->isArrayType())) {

0 commit comments

Comments
 (0)