We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5752e31 commit 4dd20b0Copy full SHA for 4dd20b0
bolt/lib/Rewrite/RewriteInstance.cpp
@@ -2306,9 +2306,13 @@ void RewriteInstance::processRelocations() {
2306
return;
2307
2308
for (const SectionRef &Section : InputFile->sections()) {
2309
- if (cantFail(Section.getRelocatedSection()) != InputFile->section_end() &&
2310
- !BinarySection(*BC, Section).isAllocatable())
2311
- readRelocations(Section);
+ section_iterator SecIter = cantFail(Section.getRelocatedSection());
+ if (SecIter == InputFile->section_end())
+ continue;
2312
+ if (BinarySection(*BC, Section).isAllocatable())
2313
2314
+
2315
+ readRelocations(Section);
2316
}
2317
2318
if (NumFailedRelocations)
0 commit comments