Skip to content

Commit c52a46a

Browse files
committed
[clang][AST][NFC] Remove a local variable
The reference could be const, but this is even better.
1 parent 9348d43 commit c52a46a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/lib/AST/Decl.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2200,8 +2200,7 @@ static LanguageLinkage getDeclLanguageLinkage(const T &D) {
22002200

22012201
// Language linkage is a C++ concept, but saying that everything else in C has
22022202
// C language linkage fits the implementation nicely.
2203-
ASTContext &Context = D.getASTContext();
2204-
if (!Context.getLangOpts().CPlusPlus)
2203+
if (!D.getASTContext().getLangOpts().CPlusPlus)
22052204
return CLanguageLinkage;
22062205

22072206
// C++ [dcl.link]p4: A C language linkage is ignored in determining the

0 commit comments

Comments
 (0)