summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Linker/LinkModules.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/Linker/LinkModules.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/Linker/LinkModules.cpp')
-rw-r--r--llvm/lib/Linker/LinkModules.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Linker/LinkModules.cpp b/llvm/lib/Linker/LinkModules.cpp
index 5419c22fbf7..7649d13929f 100644
--- a/llvm/lib/Linker/LinkModules.cpp
+++ b/llvm/lib/Linker/LinkModules.cpp
@@ -664,7 +664,7 @@ bool ModuleLinker::doImportAsDefinition(const GlobalValue *SGV) {
// global variables with external linkage are transformed to
// available_externally definitions, which are ultimately turned into
// declarations after the EliminateAvailableExternally pass).
- if (dyn_cast<GlobalVariable>(SGV) && !SGV->isDeclaration() &&
+ if (isa<GlobalVariable>(SGV) && !SGV->isDeclaration() &&
!SGV->hasWeakAnyLinkage())
return true;
// Only import the function requested for importing.
OpenPOWER on IntegriCloud