]> granicus.if.org Git - clang/commitdiff
When generating the Attribute dumper code, do not dead-initialize MoreChildren
authorArnaud A. de Grandmaison <arnaud.adegm@gmail.com>
Fri, 21 Mar 2014 22:35:34 +0000 (22:35 +0000)
committerArnaud A. de Grandmaison <arnaud.adegm@gmail.com>
Fri, 21 Mar 2014 22:35:34 +0000 (22:35 +0000)
No functional change. This will cleanup a bunch of scan-build warnings.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@204529 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/ClangAttrEmitter.cpp

index d4f8d57c61252a12fcbd48956b236a4dea28495c..a0749ebaf29edd3cdd0dc624d5fd59503cc657c2 100644 (file)
@@ -2522,7 +2522,7 @@ void EmitClangAttrDump(RecordKeeper &Records, raw_ostream &OS) {
 
       // Code for detecting the last child.
       OS << "    bool OldMoreChildren = hasMoreChildren();\n";
-      OS << "    bool MoreChildren = OldMoreChildren;\n";     
+      OS << "    bool MoreChildren;\n";
 
       for (auto AI = Args.begin(), AE = Args.end(); AI != AE; ++AI) {
         // More code for detecting the last child.