diff options
author | Craig Topper <craig.topper@gmail.com> | 2015-11-18 07:07:59 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2015-11-18 07:07:59 +0000 |
commit | 66059c9f4d40893b24195663c711c4fa7a35cf6a (patch) | |
tree | cc4d2a2ee394200dc06fab658a333aabfda0ab36 /llvm/lib/Linker/LinkModules.cpp | |
parent | cd67662ad950f12c8c383e23b6b9b5bcfcc7b232 (diff) | |
download | bcm5719-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.cpp | 2 |
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. |