summaryrefslogtreecommitdiff
path: root/compiler/optimizing
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2024-08-02 09:51:35 +0000
committer VladimĂ­r Marko <vmarko@google.com> 2024-08-02 11:17:17 +0000
commit802368317936636c94073d27d2bc6cd1bd03ccdd (patch)
tree3060c46364b2cdba65f56d5cbb737cf8adb8011f /compiler/optimizing
parentf3b8986d23c88cfac53e94cfb7bf7e5b9a0b438b (diff)
ART: Avoid deprecated implicit capture of `this`.
Test: buildbot-build.sh --target Change-Id: Ie7cca7133760ab934c05a04b47d852ea07c3f6ee
Diffstat (limited to 'compiler/optimizing')
-rw-r--r--compiler/optimizing/load_store_elimination.cc2
-rw-r--r--compiler/optimizing/stack_map_stream.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/optimizing/load_store_elimination.cc b/compiler/optimizing/load_store_elimination.cc
index 93c4ac4715..7441e28e77 100644
--- a/compiler/optimizing/load_store_elimination.cc
+++ b/compiler/optimizing/load_store_elimination.cc
@@ -2011,7 +2011,7 @@ bool LSEVisitor::MaterializeLoopPhis(ArrayRef<const size_t> phi_placeholder_inde
HInstruction* phi = phi_it.Current();
DCHECK_EQ(phi->InputCount(), predecessors.size());
ArrayRef<HUserRecord<HInstruction*>> phi_inputs = phi->GetInputRecords();
- auto cmp = [=](const HUserRecord<HInstruction*>& lhs, HBasicBlock* rhs) {
+ auto cmp = [=, this](const HUserRecord<HInstruction*>& lhs, HBasicBlock* rhs) {
Value value = ReplacementOrValue(heap_values_for_[rhs->GetBlockId()][idx].value);
if (value.NeedsPhi()) {
DCHECK(value.GetPhiPlaceholder() == phi_placeholder);
diff --git a/compiler/optimizing/stack_map_stream.cc b/compiler/optimizing/stack_map_stream.cc
index 83551a9750..10d8c91265 100644
--- a/compiler/optimizing/stack_map_stream.cc
+++ b/compiler/optimizing/stack_map_stream.cc
@@ -153,7 +153,7 @@ void StackMapStream::BeginStackMapEntry(
size_t stack_map_index = stack_maps_.size();
// Create lambda method, which will be executed at the very end to verify data.
// Parameters and local variables will be captured(stored) by the lambda "[=]".
- dchecks_.emplace_back([=](const CodeInfo& code_info) {
+ dchecks_.emplace_back([=, this](const CodeInfo& code_info) {
// The `native_pc_offset` may have been overridden using `SetStackMapNativePcOffset(.)`.
uint32_t final_native_pc_offset = GetStackMapNativePcOffset(stack_map_index);
if (kind == StackMap::Kind::Default || kind == StackMap::Kind::OSR) {