projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9dbeac1
)
Fix MSVC "not all control paths return a value" warning. NFCI.
author
Simon Pilgrim
<llvm-dev@redking.me.uk>
Fri, 9 Jul 2021 11:04:09 +0000
(12:04 +0100)
committer
Simon Pilgrim
<llvm-dev@redking.me.uk>
Fri, 9 Jul 2021 11:07:34 +0000
(12:07 +0100)
lld/ELF/SyntheticSections.cpp
patch
|
blob
|
history
diff --git
a/lld/ELF/SyntheticSections.cpp
b/lld/ELF/SyntheticSections.cpp
index
55cd271
..
3496df1
100644
(file)
--- a/
lld/ELF/SyntheticSections.cpp
+++ b/
lld/ELF/SyntheticSections.cpp
@@
-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 {