[llvm] [LLVM][NFC] Remove redundant copy parameter in lambda (PR #110156)
Amr Hesham via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 26 11:51:23 PDT 2024
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/110156
>From 31379e22c6f1d37137258bf2e129200091b9f724 Mon Sep 17 00:00:00 2001
From: AmrDeveloper <amr96 at programmer.net>
Date: Thu, 26 Sep 2024 20:43:15 +0200
Subject: [PATCH] [LLVM][NFC] Remove redundant copy parameter in lambda
---
llvm/lib/AsmParser/LLParser.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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