]> granicus.if.org Git - clang/commitdiff
Initialize a couple of fields inherited for our private use.
authorJohn McCall <rjmccall@apple.com>
Fri, 16 Jul 2010 17:02:45 +0000 (17:02 +0000)
committerJohn McCall <rjmccall@apple.com>
Fri, 16 Jul 2010 17:02:45 +0000 (17:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108532 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/Decl.h

index 39cd51f606b59537f2a15c87170bae9b5a9ebe6f..7fbf874e8e5db409a21c4eebc47d3cad488e5167 100644 (file)
@@ -2037,6 +2037,8 @@ class EnumDecl : public TagDecl {
            IdentifierInfo *Id, EnumDecl *PrevDecl, SourceLocation TKL)
     : TagDecl(Enum, TTK_Enum, DC, L, Id, PrevDecl, TKL), InstantiatedFrom(0) {
       IntegerType = QualType();
+      NumNegativeBits = 0;
+      NumPositiveBits = 0;
     }
 public:
   EnumDecl *getCanonicalDecl() {