r204529 - When generating the Attribute dumper code, do not dead-initialize MoreChildren
Arnaud A. de Grandmaison
arnaud.adegm at gmail.com
Fri Mar 21 15:35:35 PDT 2014
Author: aadg
Date: Fri Mar 21 17:35:34 2014
New Revision: 204529
URL: http://llvm.org/viewvc/llvm-project?rev=204529&view=rev
Log:
When generating the Attribute dumper code, do not dead-initialize MoreChildren
No functional change. This will cleanup a bunch of scan-build warnings.
Modified:
cfe/trunk/utils/TableGen/ClangAttrEmitter.cpp
Modified: cfe/trunk/utils/TableGen/ClangAttrEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/TableGen/ClangAttrEmitter.cpp?rev=204529&r1=204528&r2=204529&view=diff
==============================================================================
--- cfe/trunk/utils/TableGen/ClangAttrEmitter.cpp (original)
+++ cfe/trunk/utils/TableGen/ClangAttrEmitter.cpp Fri Mar 21 17:35:34 2014
@@ -2522,7 +2522,7 @@ void EmitClangAttrDump(RecordKeeper &Rec
// 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.
More information about the cfe-commits
mailing list