[lld] 020022e - Fix auto -> auto * clang tidy.
Eric Christopher via llvm-commits
llvm-commits at lists.llvm.org
Mon May 11 15:51:13 PDT 2020
Author: Eric Christopher
Date: 2020-05-11T15:50:52-07:00
New Revision: 020022e12e03fb7e6b0405bc18a87921a11cde7e
URL: https://github.com/llvm/llvm-project/commit/020022e12e03fb7e6b0405bc18a87921a11cde7e
DIFF: https://github.com/llvm/llvm-project/commit/020022e12e03fb7e6b0405bc18a87921a11cde7e.diff
LOG: Fix auto -> auto * clang tidy.
Added:
Modified:
lld/MachO/SyntheticSections.cpp
Removed:
################################################################################
diff --git a/lld/MachO/SyntheticSections.cpp b/lld/MachO/SyntheticSections.cpp
index d3a601852e60..9a7b4241b827 100644
--- a/lld/MachO/SyntheticSections.cpp
+++ b/lld/MachO/SyntheticSections.cpp
@@ -297,7 +297,7 @@ void SymtabSection::writeTo(uint8_t *buf) const {
nList->n_strx = entry.strx;
// TODO support other symbol types
// TODO populate n_desc
- if (auto defined = dyn_cast<Defined>(entry.sym)) {
+ if (auto *defined = dyn_cast<Defined>(entry.sym)) {
nList->n_type = N_EXT | N_SECT;
nList->n_sect = defined->isec->parent->index;
// For the N_SECT symbol type, n_value is the address of the symbol
More information about the llvm-commits
mailing list