Skip to content

Commit 9bd2d17

Browse files
committed
[Clang] Fix typo in is_replaceable diagnostic.
Adjustment to llvm#143265; `because it not` should be `because it is not`.
1 parent 9a237f3 commit 9bd2d17

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/include/clang/Basic/DiagnosticSemaKinds.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1780,7 +1780,7 @@ def note_unsatisfied_trait_reason
17801780
"%HasArcLifetime{has an ARC lifetime qualifier}|"
17811781
"%VLA{is a variably-modified type}|"
17821782
"%VBase{has a virtual base %1}|"
1783-
"%NotScalarOrClass{not %select{a|an array of objects of}1 scalar or "
1783+
"%NotScalarOrClass{is not %select{a|an array of objects of}1 scalar or "
17841784
"class type}|"
17851785
"%NTRBase{has a non-trivially-relocatable base %1}|"
17861786
"%NTRField{has a non-trivially-relocatable member %1 of type %2}|"

clang/test/SemaCXX/type-traits-unsatisfied-diags.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ static_assert(__builtin_is_replaceable(const volatile int));
166166
static_assert(__builtin_is_replaceable(void()));
167167
// expected-error@-1 {{static assertion failed due to requirement '__builtin_is_replaceable(void ())}} \
168168
// expected-note@-1 {{'void ()' is not replaceable}} \
169-
// expected-note@-1 {{because it not a scalar or class type}}
169+
// expected-note@-1 {{because it is not a scalar or class type}}
170170

171171
struct B {
172172
virtual ~B();

0 commit comments

Comments
 (0)