Skip to content

Commit f9cd381

Browse files
author
Erich Keane
committed
Fix build error in 371875
Apparently Clang complains about the name hiding here in a way that my GCC build does not, so a shocking number of buildbots decided to tell me about it. Change the name of the variable to prevent the name hiding and hope we don't have to fix this again. llvm-svn: 371876
1 parent 6a24e80 commit f9cd381

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/utils/TableGen/ClangAttrEmitter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2341,7 +2341,7 @@ void EmitClangAttrClass(RecordKeeper &Records, raw_ostream &OS) {
23412341
OS << ", SourceRange Range, AttributeCommonInfo::Syntax Syntax";
23422342
if (!ElideSpelling)
23432343
OS << ", " << R.getName()
2344-
<< "Attr::Spelling Spelling = "
2344+
<< "Attr::Spelling S = "
23452345
"static_cast<Spelling>(SpellingNotCalculated)";
23462346
OS << ") {\n";
23472347
OS << " AttributeCommonInfo I(Range, ";
@@ -2353,7 +2353,7 @@ void EmitClangAttrClass(RecordKeeper &Records, raw_ostream &OS) {
23532353

23542354
OS << ", Syntax";
23552355
if (!ElideSpelling)
2356-
OS << ", Spelling";
2356+
OS << ", S";
23572357
OS << ");\n";
23582358
OS << " return Create";
23592359
if (Implicit)

0 commit comments

Comments
 (0)