Fix auto -> auto * clang tidy.

This commit is contained in:
Eric Christopher 2020-05-11 15:50:22 -07:00
parent 67b950be6d
commit 020022e12e
1 changed files with 1 additions and 1 deletions

View File

@ -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