[all-commits] [llvm/llvm-project] 80d1f6: Fix unused lambda capture in a non-asserts build
David Blaikie via All-commits
all-commits at lists.llvm.org
Thu Mar 11 00:22:42 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 80d1f657a157b2e1558ecfc161bad062592ba5bf
https://github.com/llvm/llvm-project/commit/80d1f657a157b2e1558ecfc161bad062592ba5bf
Author: David Blaikie <dblaikie at gmail.com>
Date: 2021-03-11 (Thu, 11 Mar 2021)
Changed paths:
M llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
M llvm/lib/CodeGen/AsmPrinter/DwarfExpression.cpp
M llvm/lib/CodeGen/AsmPrinter/DwarfExpression.h
Log Message:
-----------
Fix unused lambda capture in a non-asserts build
For locally scoped lambdas like this there's no particular benefit to
explicitly listing captures - or avoiding capturing this. Switch to [&]
and make it all easier to maintain.
(& driveby change std::function to llvm::function_ref)
More information about the All-commits
mailing list