summaryrefslogtreecommitdiff
path: root/compiler/optimizing/code_generator.cc
diff options
context:
space:
mode:
authorAlexandre Rames <alexandre.rames@linaro.org>2016-04-15 11:54:06 +0100
committerAlexandre Rames <alexandre.rames@linaro.org>2016-04-15 11:54:06 +0100
commitc01a66465a398ad15da90ab2bdc35b7f4a609b17 (patch)
treee85cb2aa05be5c1491814fa83b94748439b8394b /compiler/optimizing/code_generator.cc
parentdad35b0762f97ce79ce3b9a35c9df5021b7dbd17 (diff)
Fix: correctly destruct VIXL labels.
Bug: 27505766 Change-Id: I077465e3d308f4331e7a861902e05865f9d99835
Diffstat (limited to 'compiler/optimizing/code_generator.cc')
-rw-r--r--compiler/optimizing/code_generator.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/optimizing/code_generator.cc b/compiler/optimizing/code_generator.cc
index a771cc1567..e7fa4e472b 100644
--- a/compiler/optimizing/code_generator.cc
+++ b/compiler/optimizing/code_generator.cc
@@ -187,7 +187,8 @@ class DisassemblyScope {
void CodeGenerator::GenerateSlowPaths() {
size_t code_start = 0;
- for (SlowPathCode* slow_path : slow_paths_) {
+ for (const std::unique_ptr<SlowPathCode>& slow_path_unique_ptr : slow_paths_) {
+ SlowPathCode* slow_path = slow_path_unique_ptr.get();
current_slow_path_ = slow_path;
if (disasm_info_ != nullptr) {
code_start = GetAssembler()->CodeSize();