forked from OSchip/llvm-project
Don't flag dead stores that occur in macros.
llvm-svn: 49672
This commit is contained in:
parent
e36714c0b4
commit
87bfc03f4a
|
@ -39,6 +39,10 @@ public:
|
|||
const LiveVariables::AnalysisDataTy& AD,
|
||||
const LiveVariables::ValTy& Live) {
|
||||
|
||||
// Skip statements in macros.
|
||||
if (S->getLocStart().isMacroID())
|
||||
return;
|
||||
|
||||
if (BinaryOperator* B = dyn_cast<BinaryOperator>(S)) {
|
||||
if (!B->isAssignmentOp()) return; // Skip non-assignments.
|
||||
|
||||
|
|
Loading…
Reference in New Issue