Fix MSVC "not all control paths return a value" warning. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 9 Jul 2021 11:04:09 +0000 (12:04 +0100)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 9 Jul 2021 11:07:34 +0000 (12:07 +0100)
lld/ELF/SyntheticSections.cpp

index 55cd271..3496df1 100644 (file)
@@ -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 {