From e706ba02715a69c60c70a260728a93fe7c442635 Mon Sep 17 00:00:00 2001 From: "Arnaud A. de Grandmaison" Date: Fri, 21 Mar 2014 22:35:34 +0000 Subject: When generating the Attribute dumper code, do not dead-initialize MoreChildren 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/TableGen/ClangAttrEmitter.cpp b/utils/TableGen/ClangAttrEmitter.cpp index d4f8d57c61..a0749ebaf2 100644 --- a/utils/TableGen/ClangAttrEmitter.cpp +++ b/utils/TableGen/ClangAttrEmitter.cpp @@ -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. -- cgit v1.2.3