forked from OSchip/llvm-project
Avoid warnings when asserts are disabled.
llvm-svn: 309326
This commit is contained in:
parent
c890993726
commit
a2df2f09f4
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue