Skip to content

Commit

Permalink
Fix MSVC "not all control paths return a value" warning. NFCI.
Browse files Browse the repository at this point in the history
  • Loading branch information
RKSimon committed Jul 9, 2021
1 parent 9dbeac1 commit 1440d45
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lld/ELF/SyntheticSections.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1589,6 +1589,7 @@ int64_t DynamicReloc::computeAddend() const {
assert(sym == nullptr);
return getMipsPageAddr(outputSec->addr) + addend;
}
llvm_unreachable("Unknown DynamicReloc::Kind enum");
}

uint32_t DynamicReloc::getSymIndex(SymbolTableBaseSection *symTab) const {
Expand Down

0 comments on commit 1440d45

Please sign in to comment.