commit | 1be7cbd532a41981019f1e89c8ecf404bc9af809 | [log] [tgz] |
---|---|---|
author | Nicolas Geoffray <ngeoffray@google.com> | Fri Apr 29 13:56:01 2016 +0100 |
committer | Nicolas Geoffray <ngeoffray@google.com> | Fri Apr 29 13:56:01 2016 +0100 |
tree | f027ec1b2835a47abf64faff263b79772e186b35 | |
parent | 945dc321df3e69bb59c834f6399d34bbfd624e5c [diff] [blame] |
Remove invoke after inlining. bug:28460178 Change-Id: I0ce00667aab1e02bab9e04a4cea7ee5d278f6a71
diff --git a/compiler/optimizing/inliner.cc b/compiler/optimizing/inliner.cc index 247f825..41a15dc 100644 --- a/compiler/optimizing/inliner.cc +++ b/compiler/optimizing/inliner.cc
@@ -732,6 +732,7 @@ if (return_replacement != nullptr) { invoke_instruction->ReplaceWith(return_replacement); } + invoke_instruction->GetBlock()->RemoveInstruction(invoke_instruction); } // Run type propagation to get the guard typed.