Skip to content

Commit 013f4ba

Browse files
committed
Fix Wshadow warning against global None variable. NFC.
1 parent ffc4ff8 commit 013f4ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/include/clang/AST/DeclTemplate.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1557,8 +1557,8 @@ class TemplateTemplateParmDecl final
15571557

15581558
/// Retrieve the default argument, if any.
15591559
const TemplateArgumentLoc &getDefaultArgument() const {
1560-
static const TemplateArgumentLoc None;
1561-
return DefaultArgument.isSet() ? *DefaultArgument.get() : None;
1560+
static const TemplateArgumentLoc NoneLoc;
1561+
return DefaultArgument.isSet() ? *DefaultArgument.get() : NoneLoc;
15621562
}
15631563

15641564
/// Retrieve the location of the default argument, if any.

0 commit comments

Comments
 (0)