[lld] r229107 - Using 'isa' instead of 'dyn_cast'

Jean-Daniel Dupas devlists at shadowlab.org
Fri Feb 13 06:28:19 PST 2015


Author: jddupas
Date: Fri Feb 13 08:28:18 2015
New Revision: 229107

URL: http://llvm.org/viewvc/llvm-project?rev=229107&view=rev
Log:
Using 'isa' instead of 'dyn_cast'


Modified:
    lld/trunk/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp

Modified: lld/trunk/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp?rev=229107&r1=229106&r2=229107&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp (original)
+++ lld/trunk/lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp Fri Feb 13 08:28:18 2015
@@ -1105,7 +1105,7 @@ void Util::addRebaseAndBindingInfo(const
         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;





More information about the llvm-commits mailing list