Skip to content

Commit a01fa24

Browse files
committed
Likely did a bad merge in the past. Updating to reflect correct code with same functionality
1 parent 0366e87 commit a01fa24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1522,7 +1522,7 @@ collectLocalBranchTargets(ArrayRef<uint8_t> Bytes, MCInstrAnalysis *MIA,
15221522
uint64_t Target;
15231523
bool BranchTargetKnown = MIA->evaluateBranch(Inst, Index, Size, Target);
15241524
if (BranchTargetKnown && (Target >= Start && Target < End) &&
1525-
!Labels.count(Target)) {
1525+
!Targets.count(Target)) {
15261526
// On PowerPC and AIX, a function call is encoded as a branch to 0.
15271527
// On other PowerPC platforms (ELF), a function call is encoded as
15281528
// a branch to self. Do not add a label for these cases.

0 commit comments

Comments
 (0)