llvm.org GIT mirror llvm / f4044c1
Use existing helper. NFC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303368 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 3 years ago
1 changed file(s) with 1 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
234234 uint32_t Index = *IndexOrErr;
235235 if (Index == 0)
236236 return nullptr;
237 auto SectionsOrErr = sections();
238 if (!SectionsOrErr)
239 return SectionsOrErr.takeError();
240 return object::getSection(*SectionsOrErr, Index);
237 return getSection(Index);
241238 }
242239
243240 template