r187766 - AST/DeclTemplate.h: Possibly fix a warning. [-Wuninitialized]

NAKAMURA Takumi geek4civic at gmail.com
Mon Aug 5 20:29:01 PDT 2013


Author: chapuni
Date: Mon Aug  5 22:29:01 2013
New Revision: 187766

URL: http://llvm.org/viewvc/llvm-project?rev=187766&view=rev
Log:
AST/DeclTemplate.h: Possibly fix a warning. [-Wuninitialized]

FIXME: Would '0' be an appropriate value in SequenceNumber?

Modified:
    cfe/trunk/include/clang/AST/DeclTemplate.h

Modified: cfe/trunk/include/clang/AST/DeclTemplate.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/DeclTemplate.h?rev=187766&r1=187765&r2=187766&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/DeclTemplate.h (original)
+++ cfe/trunk/include/clang/AST/DeclTemplate.h Mon Aug  5 22:29:01 2013
@@ -2560,7 +2560,7 @@ class VarTemplatePartialSpecializationDe
   VarTemplatePartialSpecializationDecl()
       : VarTemplateSpecializationDecl(VarTemplatePartialSpecialization),
         TemplateParams(0), ArgsAsWritten(0), NumArgsAsWritten(0),
-        SequenceNumber(SequenceNumber), InstantiatedFromMember(0, false) {}
+        SequenceNumber(0), InstantiatedFromMember(0, false) {}
 
 public:
   static VarTemplatePartialSpecializationDecl *





More information about the cfe-commits mailing list