[PATCH] D19831: [scan-build] fix dead store warnings emitted on clang code base
David Blaikie via cfe-commits
cfe-commits at lists.llvm.org
Tue May 3 15:20:09 PDT 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL268453: [scan-build] fix dead store warnings emitted on clang code base (authored by dblaikie).
Changed prior to commit:
http://reviews.llvm.org/D19831?vs=56059&id=56071#toc
Repository:
rL LLVM
http://reviews.llvm.org/D19831
Files:
cfe/trunk/tools/c-index-test/c-index-test.c
Index: cfe/trunk/tools/c-index-test/c-index-test.c
===================================================================
--- cfe/trunk/tools/c-index-test/c-index-test.c
+++ cfe/trunk/tools/c-index-test/c-index-test.c
@@ -1432,10 +1432,10 @@
CXString FieldSpelling = clang_getCursorSpelling(cursor);
const char *FieldName = clang_getCString(FieldSpelling);
/* recurse to get the first parent record that is not anonymous. */
- CXCursor Parent, Record;
unsigned RecordIsAnonymous = 0;
if (clang_getCursorKind(cursor) == CXCursor_FieldDecl) {
- Record = Parent = p;
+ CXCursor Record;
+ CXCursor Parent = p;
do {
Record = Parent;
Parent = clang_getCursorSemanticParent(Record);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19831.56071.patch
Type: text/x-patch
Size: 741 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160503/da02d8fb/attachment.bin>
More information about the cfe-commits
mailing list