apelete updated this revision to Diff 55952.
apelete added a comment.
[scan-build] fix dead store warnings emitted on clang code base
Changes since last revision:
- remove dead store since the do {} while() loop overwrite it immediatly anyway.
http://reviews.llvm.org/D19831
Files:
tools/c-index-test/c-index-test.c
Index: tools/c-index-test/c-index-test.c
===================================================================
--- tools/c-index-test/c-index-test.c
+++ tools/c-index-test/c-index-test.c
@@ -1435,7 +1435,6 @@
CXCursor Parent, Record;
unsigned RecordIsAnonymous = 0;
if (clang_getCursorKind(cursor) == CXCursor_FieldDecl) {
- Record = Parent = p;
do {
Record = Parent;
Parent = clang_getCursorSemanticParent(Record);
Index: tools/c-index-test/c-index-test.c
===================================================================
--- tools/c-index-test/c-index-test.c
+++ tools/c-index-test/c-index-test.c
@@ -1435,7 +1435,6 @@
CXCursor Parent, Record;
unsigned RecordIsAnonymous = 0;
if (clang_getCursorKind(cursor) == CXCursor_FieldDecl) {
- Record = Parent = p;
do {
Record = Parent;
Parent = clang_getCursorSemanticParent(Record);
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits