summaryrefslogtreecommitdiff
path: root/compiler/optimizing
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2016-04-29 13:56:01 +0100
committer Nicolas Geoffray <ngeoffray@google.com> 2016-04-29 13:56:01 +0100
commit1be7cbd532a41981019f1e89c8ecf404bc9af809 (patch)
treef027ec1b2835a47abf64faff263b79772e186b35 /compiler/optimizing
parent945dc321df3e69bb59c834f6399d34bbfd624e5c (diff)
Remove invoke after inlining.
bug:28460178 Change-Id: I0ce00667aab1e02bab9e04a4cea7ee5d278f6a71
Diffstat (limited to 'compiler/optimizing')
-rw-r--r--compiler/optimizing/inliner.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/optimizing/inliner.cc b/compiler/optimizing/inliner.cc
index 247f82574a..41a15dccaa 100644
--- a/compiler/optimizing/inliner.cc
+++ b/compiler/optimizing/inliner.cc
@@ -732,6 +732,7 @@ bool HInliner::TryInlinePolymorphicCallToSameTarget(HInvoke* invoke_instruction,
if (return_replacement != nullptr) {
invoke_instruction->ReplaceWith(return_replacement);
}
+ invoke_instruction->GetBlock()->RemoveInstruction(invoke_instruction);
}
// Run type propagation to get the guard typed.