summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2015-11-18 07:07:59 +0000
committerCraig Topper <craig.topper@gmail.com>2015-11-18 07:07:59 +0000
commit66059c9f4d40893b24195663c711c4fa7a35cf6a (patch)
treecc4d2a2ee394200dc06fab658a333aabfda0ab36 /llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
parentcd67662ad950f12c8c383e23b6b9b5bcfcc7b232 (diff)
downloadbcm5719-llvm-66059c9f4d40893b24195663c711c4fa7a35cf6a.tar.gz
bcm5719-llvm-66059c9f4d40893b24195663c711c4fa7a35cf6a.zip
Replace dyn_cast with isa in places that weren't using the returned value for more than a boolean check. NFC.
llvm-svn: 253441
Diffstat (limited to 'llvm/lib/DebugInfo/DWARF/DWARFContext.cpp')
-rw-r--r--llvm/lib/DebugInfo/DWARF/DWARFContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
index 18c4e8e4caf..2165d353ba0 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
@@ -704,7 +704,7 @@ DWARFContextInMemory::DWARFContextInMemory(const object::ObjectFile &Obj,
// relocation point already factors in the section address
// (actually applying the relocations will produce wrong results
// as the section address will be added twice).
- if (!L && dyn_cast<MachOObjectFile>(&Obj))
+ if (!L && isa<MachOObjectFile>(&Obj))
continue;
RelSecName = RelSecName.substr(
OpenPOWER on IntegriCloud