forked from OSchip/llvm-project
When generating the Attribute dumper code, do not dead-initialize MoreChildren
No functional change. This will cleanup a bunch of scan-build warnings. llvm-svn: 204529
This commit is contained in:
parent
78619f7171
commit
c6b4045d65
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue