diff options
-rw-r--r-- | lib/Transforms/Scalar/LICM.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/LICM.cpp b/lib/Transforms/Scalar/LICM.cpp index 102146945a..62896157d5 100644 --- a/lib/Transforms/Scalar/LICM.cpp +++ b/lib/Transforms/Scalar/LICM.cpp @@ -605,6 +605,7 @@ void LICM::hoist(Instruction &I) { // Remove the instruction from its current basic block... but don't delete the // instruction. + CurAST->deleteValue(&I); I.removeFromParent(); // Insert the new node in Preheader, before the terminator. |