Skip to content

Commit 0366e87

Browse files
committed
Avoid else case as per comments
1 parent 090c062 commit 0366e87

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

llvm/tools/llvm-objdump/llvm-objdump.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2398,11 +2398,9 @@ disassembleObject(ObjectFile &Obj, const ObjectFile &DbgObj,
23982398
while (It != SectionAddresses.begin()) {
23992399
--It;
24002400
if (It->first != TargetSecAddr) {
2401-
if (!FoundSymbols) {
2402-
TargetSecAddr = It->first;
2403-
} else {
2401+
if (FoundSymbols)
24042402
break;
2405-
}
2403+
TargetSecAddr = It->first;
24062404
}
24072405
TargetSectionSymbols.push_back(&AllSymbols[It->second]);
24082406
if (!AllSymbols[It->second].empty())

0 commit comments

Comments
 (0)