apelete updated this revision to Diff 57560.
apelete added a comment.
[scan-build] fix dead store warnings emitted on clang code base
Changes since last revision:
- lib/Sema/SemaLookup.cpp: remove changes since they were already applied
upstream,
- lib/Sema/SemaExpr.cpp: move 'IsDereference' an
rtrieu added inline comments.
Comment at: lib/Sema/SemaExpr.cpp:9629
@@ -9628,3 +9628,3 @@
// Track if the current expression is the result of a derefence, and if the
// next checked expression is the result of a derefence.
bool IsDereference = false;
Add
apelete created this revision.
apelete added reviewers: rjmccall, rtrieu, rsmith.
apelete added a subscriber: cfe-commits.
This fixes dead store warnings of the type "dead assignment" reported
by CLang Static Analyzer on the following files:
- lib/Sema/SemaDeclCXX.cpp,
- lib/Sema/SemaExpr.cpp,
-