Replace dyn_cast with isa in places that weren't using the returned value for more...
[oota-llvm.git] / lib / Linker / LinkModules.cpp
index 5419c22fbf7b69dea916910eccf7cb98eb8bc4fb..7649d13929f442fa07914a40c6738b991eca48f8 100644 (file)
@@ -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.