[llvm] 91b565b - [LLVM][NFC] Remove redundant copy parameter in lambda (#110156)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 26 23:29:22 PDT 2024
Author: Amr Hesham
Date: 2024-09-27T08:29:19+02:00
New Revision: 91b565bd7f98a695535ccea153895e002411e3de
URL: https://github.com/llvm/llvm-project/commit/91b565bd7f98a695535ccea153895e002411e3de
DIFF: https://github.com/llvm/llvm-project/commit/91b565bd7f98a695535ccea153895e002411e3de.diff
LOG: [LLVM][NFC] Remove redundant copy parameter in lambda (#110156)
Remove redundant copy parameter in lambda
Fixes: #95643
Added:
Modified:
llvm/lib/AsmParser/LLParser.cpp
Removed:
################################################################################
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp
index 08b917fdb260aa..e088c312c7b441 100644
--- a/llvm/lib/AsmParser/LLParser.cpp
+++ b/llvm/lib/AsmParser/LLParser.cpp
@@ -5239,7 +5239,7 @@ bool LLParser::parseDISubrange(MDNode *&Result, bool IsDistinct) {
Metadata *UpperBound = nullptr;
Metadata *Stride = nullptr;
- auto convToMetadata = [&](MDSignedOrMDField Bound) -> Metadata * {
+ auto convToMetadata = [&](const MDSignedOrMDField &Bound) -> Metadata * {
if (Bound.isMDSignedField())
return ConstantAsMetadata::get(ConstantInt::getSigned(
Type::getInt64Ty(Context), Bound.getMDSignedValue()));
@@ -5271,7 +5271,7 @@ bool LLParser::parseDIGenericSubrange(MDNode *&Result, bool IsDistinct) {
PARSE_MD_FIELDS();
#undef VISIT_MD_FIELDS
- auto ConvToMetadata = [&](MDSignedOrMDField Bound) -> Metadata * {
+ auto ConvToMetadata = [&](const MDSignedOrMDField &Bound) -> Metadata * {
if (Bound.isMDSignedField())
return DIExpression::get(
Context, {dwarf::DW_OP_consts,
More information about the llvm-commits
mailing list