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:
c890993
)
Avoid warnings when asserts are disabled.
author
Rafael Espindola
<rafael.espindola@gmail.com>
Thu, 27 Jul 2017 21:42:42 +0000
(21:42 +0000)
committer
Rafael Espindola
<rafael.espindola@gmail.com>
Thu, 27 Jul 2017 21:42:42 +0000
(21:42 +0000)
llvm-svn: 309326
lld/ELF/LinkerScript.cpp
patch
|
blob
|
history
diff --git
a/lld/ELF/LinkerScript.cpp
b/lld/ELF/LinkerScript.cpp
index
48ad826
..
d7da4a2
100644
(file)
--- a/
lld/ELF/LinkerScript.cpp
+++ b/
lld/ELF/LinkerScript.cpp
@@
-428,8
+428,7
@@
void LinkerScript::addOrphanSections(OutputSectionFactory &Factory) {
});
if (I == End) {
Factory.addInputSec(S, Name);
- OutputSection *Sec = S->getOutputSection();
- assert(Sec->SectionIndex == INT_MAX);
+ assert(S->getOutputSection()->SectionIndex == INT_MAX);
} else {
OutputSection *Sec = cast<OutputSection>(*I);
Factory.addInputSec(S, Name, Sec);