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 4a96803 commit 534f6edCopy full SHA for 534f6ed
llvm/lib/MC/MachObjectWriter.cpp
@@ -716,18 +716,8 @@ bool MachObjectWriter::isSymbolRefDifferenceFullyResolvedImpl(
716
if (&SecA != &SecB)
717
return false;
718
719
- const MCFragment *FA = SA.getFragment();
720
-
721
- // Bail if the symbol has no fragment.
722
- if (!FA)
723
- return false;
724
725
// If the atoms are the same, they are guaranteed to have the same address.
726
- if (FA->getAtom() == FB.getAtom())
727
- return true;
728
729
- // Otherwise, we can't prove this is fully resolved.
730
+ return SA.getFragment()->getAtom() == FB.getAtom();
731
}
732
733
static MachO::LoadCommandType getLCFromMCVM(MCVersionMinType Type) {
0 commit comments