[lld] r338722 - [LLD][ELF] - An attemp to fix BB after rL338718.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 2 07:34:40 PDT 2018
Author: grimar
Date: Thu Aug 2 07:34:39 2018
New Revision: 338722
URL: http://llvm.org/viewvc/llvm-project?rev=338722&view=rev
Log:
[LLD][ELF] - An attemp to fix BB after rL338718.
BB is unhappy :`-(
http://lab.llvm.org:8011/builders/lld-perf-testsuite/builds/5632
Modified:
lld/trunk/ELF/InputSection.cpp
Modified: lld/trunk/ELF/InputSection.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/InputSection.cpp?rev=338722&r1=338721&r2=338722&view=diff
==============================================================================
--- lld/trunk/ELF/InputSection.cpp (original)
+++ lld/trunk/ELF/InputSection.cpp Thu Aug 2 07:34:39 2018
@@ -663,8 +663,9 @@ static uint64_t getRelocTargetVA(const I
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.
More information about the llvm-commits
mailing list