Using 'isa' instead of 'dyn_cast'
authorJean-Daniel Dupas <devlists@shadowlab.org>
Fri, 13 Feb 2015 14:28:18 +0000 (14:28 +0000)
committerJean-Daniel Dupas <devlists@shadowlab.org>
Fri, 13 Feb 2015 14:28:18 +0000 (14:28 +0000)
llvm-svn: 229107

lld/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp

index 97608a0..78c61d0 100644 (file)
@@ -1105,7 +1105,7 @@ void Util::addRebaseAndBindingInfo(const lld::File &atomFile,
         const Atom* targ = ref->target();
         if (_archHandler.isPointer(*ref)) {
           // A pointer to a DefinedAtom requires rebasing.
-          if (dyn_cast<DefinedAtom>(targ)) {
+          if (isa<DefinedAtom>(targ)) {
             RebaseLocation rebase;
             rebase.segIndex = segmentIndex;
             rebase.segOffset = segmentOffset;