diff options
-rw-r--r-- | lld/ELF/InputSection.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lld/ELF/InputSection.cpp b/lld/ELF/InputSection.cpp index ed96661b2fb..b1c5a31a724 100644 --- a/lld/ELF/InputSection.cpp +++ b/lld/ELF/InputSection.cpp @@ -663,8 +663,9 @@ static uint64_t getRelocTargetVA(const InputFile *File, RelType Type, int64_t A, return InX::Got->getTlsIndexOff() + A; case R_TLSLD_PC: return InX::Got->getTlsIndexVA() + A - P; + default: + llvm_unreachable("invalid expression"); } - llvm_unreachable("Invalid expression"); } // This function applies relocations to sections without SHF_ALLOC bit. |