Skip to content

Commit 39728f5

Browse files
committed
Fix copy pasta with the note
1 parent 7f21a96 commit 39728f5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

clang/lib/AST/ASTStructuralEquivalence.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2126,7 +2126,8 @@ static bool IsStructurallyEquivalent(StructuralEquivalenceContext &Context,
21262126
diag::err_odr_tag_type_inconsistent))
21272127
<< Context.ToCtx.getTypeDeclType(D2)
21282128
<< (&Context.FromCtx != &Context.ToCtx);
2129-
Context.Diag2(D2->getLocation(), diag::note_odr_enumerator)
2129+
Context.Diag2(D2->getLocation(),
2130+
diag::note_odr_incompatible_fixed_underlying_type)
21302131
<< D2 << D2->getIntegerType() << D1->getIntegerType();
21312132
}
21322133
return false;

clang/test/ASTMerge/enum/test2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
// CHECK: enum4.c:6:6: note: enumeration 'E2' has fixed underlying type here
1212
// CHECK: enum3.c:6:6: note: enumeration 'E2' missing fixed underlying type here
1313
// CHECK: enum3.c:11:6: warning: type 'enum E3' has incompatible definitions in different translation units
14-
// CHECK: enum3.c:11:6: note: enumerator 'E3' with value 'long' here
14+
// CHECK: enum3.c:11:6: note: enumeration 'E3' declared with incompatible fixed underlying types ('long' vs. 'short')
1515
// CHECK: 3 warnings and 1 error generated
1616

0 commit comments

Comments
 (0)