Don't emit a dead store for '++' operations unless it occurs with a return...
Don't emit a dead store for '++' operations unless it occurs with a return statement. We've never seen any other cases that were real bugs. Fixes <rdar://problem/6962292>. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125419 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/AST/ParentMap.h 5 additions, 0 deletionsinclude/clang/AST/ParentMap.h
- lib/AST/ParentMap.cpp 9 additions, 0 deletionslib/AST/ParentMap.cpp
- lib/StaticAnalyzer/Checkers/DeadStoresChecker.cpp 5 additions, 6 deletionslib/StaticAnalyzer/Checkers/DeadStoresChecker.cpp
- test/Analysis/dead-stores.c 4 additions, 3 deletionstest/Analysis/dead-stores.c
- test/Analysis/dead-stores.cpp 3 additions, 3 deletionstest/Analysis/dead-stores.cpp
Please register or sign in to comment