[llvm] 4e85b42 - [MemoryBuiltins] Remove unnecessary lambda capture (NFC)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 8 01:14:00 PDT 2022
Author: Nikita Popov
Date: 2022-04-08T10:13:37+02:00
New Revision: 4e85b427ddc362f42cf0d0acaef1c9cf747ed1af
URL: https://github.com/llvm/llvm-project/commit/4e85b427ddc362f42cf0d0acaef1c9cf747ed1af
DIFF: https://github.com/llvm/llvm-project/commit/4e85b427ddc362f42cf0d0acaef1c9cf747ed1af.diff
LOG: [MemoryBuiltins] Remove unnecessary lambda capture (NFC)
Added:
Modified:
llvm/lib/Analysis/MemoryBuiltins.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Analysis/MemoryBuiltins.cpp b/llvm/lib/Analysis/MemoryBuiltins.cpp
index aebe82f71dc43..151afade1faa5 100644
--- a/llvm/lib/Analysis/MemoryBuiltins.cpp
+++ b/llvm/lib/Analysis/MemoryBuiltins.cpp
@@ -826,7 +826,7 @@ SizeOffsetType ObjectSizeOffsetVisitor::findLoadSizeOffset(
auto Unknown = [this, &BB, &VisitedBlocks]() {
return VisitedBlocks[&BB] = unknown();
};
- auto Known = [this, &BB, &VisitedBlocks](SizeOffsetType SO) {
+ auto Known = [&BB, &VisitedBlocks](SizeOffsetType SO) {
return VisitedBlocks[&BB] = SO;
};
More information about the llvm-commits
mailing list