r317091 - Fix warnings discovered by rL317076. [-Wunused-private-field]

NAKAMURA Takumi via cfe-commits cfe-commits at lists.llvm.org
Wed Nov 1 06:47:55 PDT 2017


Author: chapuni
Date: Wed Nov  1 06:47:55 2017
New Revision: 317091

URL: http://llvm.org/viewvc/llvm-project?rev=317091&view=rev
Log:
Fix warnings discovered by rL317076. [-Wunused-private-field]

Modified:
    cfe/trunk/include/clang/Sema/Sema.h

Modified: cfe/trunk/include/clang/Sema/Sema.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Sema/Sema.h?rev=317091&r1=317090&r2=317091&view=diff
==============================================================================
--- cfe/trunk/include/clang/Sema/Sema.h (original)
+++ cfe/trunk/include/clang/Sema/Sema.h Wed Nov  1 06:47:55 2017
@@ -1724,7 +1724,6 @@ public:
     ExprResult Expr;
     TemplateName Template;
     ParsedType Type;
-    const IdentifierInfo *Keyword;
 
     explicit NameClassification(NameClassificationKind Kind) : Kind(Kind) {}
 
@@ -1733,8 +1732,7 @@ public:
 
     NameClassification(ParsedType Type) : Kind(NC_Type), Type(Type) {}
 
-    NameClassification(const IdentifierInfo *Keyword)
-        : Kind(NC_Keyword), Keyword(Keyword) {}
+    NameClassification(const IdentifierInfo *Keyword) : Kind(NC_Keyword) {}
 
     static NameClassification Error() {
       return NameClassification(NC_Error);




More information about the cfe-commits mailing list