[llvm] 3b5572a - Fix MSVC shadow variable warning. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 17 09:32:05 PST 2021
Author: Simon Pilgrim
Date: 2021-12-17T17:31:39Z
New Revision: 3b5572a18b2f19ee947f9b0378bbf87b57169604
URL: https://github.com/llvm/llvm-project/commit/3b5572a18b2f19ee947f9b0378bbf87b57169604
DIFF: https://github.com/llvm/llvm-project/commit/3b5572a18b2f19ee947f9b0378bbf87b57169604.diff
LOG: Fix MSVC shadow variable warning. NFC.
Added:
Modified:
llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp
Removed:
################################################################################
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp b/llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp
index 36ca7fe027673..6424c2f598449 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp
@@ -557,12 +557,12 @@ unsigned DWARFVerifier::verifyDebugInfoAttribute(const DWARFDie &Die,
if (Error || !Expression.verify(U))
ReportError("DIE contains invalid DWARF expression:");
}
- } else if (Error E = handleErrors(
+ } else if (Error Err = handleErrors(
Loc.takeError(), [&](std::unique_ptr<ResolverError> E) {
return U->isDWOUnit() ? Error::success()
: Error(std::move(E));
}))
- ReportError(toString(std::move(E)));
+ ReportError(toString(std::move(Err)));
break;
}
case DW_AT_specification:
More information about the llvm-commits
mailing list