From d37c50d614896fe21447c4beeeaebb0847a33a55 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Sat, 29 Aug 2020 21:33:19 +0200 Subject: [PATCH] [LVI] Remove unnecessary lambda capture (NFC) --- lib/Analysis/LazyValueInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Analysis/LazyValueInfo.cpp b/lib/Analysis/LazyValueInfo.cpp index 8a0507ffc26..d597d456fbb 100644 --- a/lib/Analysis/LazyValueInfo.cpp +++ b/lib/Analysis/LazyValueInfo.cpp @@ -656,7 +656,7 @@ bool LazyValueInfoImpl::isNonNullAtEndOfBlock(Value *Val, BasicBlock *BB) { return false; Val = getUnderlyingObject(Val); - return TheCache.isNonNullAtEndOfBlock(Val, BB, [this](BasicBlock *BB) { + return TheCache.isNonNullAtEndOfBlock(Val, BB, [](BasicBlock *BB) { NonNullPointerSet NonNullPointers; for (Instruction &I : *BB) AddNonNullPointersByInstruction(&I, NonNullPointers);