diff options
-rw-r--r-- | lib/Transforms/Scalar/ADCE.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/ADCE.cpp b/lib/Transforms/Scalar/ADCE.cpp index 32caaf1b44..0bced4104e 100644 --- a/lib/Transforms/Scalar/ADCE.cpp +++ b/lib/Transforms/Scalar/ADCE.cpp @@ -144,6 +144,7 @@ bool ADCE::dropReferencesOfDeadInstructionsInLiveBlock(BasicBlock *BB) { // Delete the instruction... I = BB->getInstList().erase(I); Changed = true; + ++NumInstRemoved; } else { ++I; } |