Commit 6d308af0 authored by Takuto Ikuta's avatar Takuto Ikuta Committed by Commit Bot

Remove unused lambda capture if DCHECK is not used.

This is a preparation CL to remove -Wno-unused-lambda-capture warning suppression.

Bug: chromium:681136
Change-Id: If3d16c8a6719bf3135e028ab2bafe850778e31b5
Reviewed-on: https://chromium-review.googlesource.com/c/1286390Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
Commit-Queue: Takuto Ikuta <tikuta@chromium.org>
Cr-Commit-Position: refs/heads/master@{#56722}
parent 5d0055fa
......@@ -574,7 +574,12 @@ void IncrementalMarking::UpdateMarkingWorklistAfterScavenge() {
void* minor_marking_state = nullptr;
#endif // ENABLE_MINOR_MC
marking_worklist()->Update([this, filler_map, minor_marking_state](
marking_worklist()->Update([
#ifdef DEBUG
// this is referred inside DCHECK.
this,
#endif
filler_map, minor_marking_state](
HeapObject* obj, HeapObject** out) -> bool {
DCHECK(obj->IsHeapObject());
// Only pointers to from space have to be updated.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment