Renamed inst_const_iterator -> const_inst_iterator
[oota-llvm.git] / lib / Analysis / ModuleAnalyzer.cpp
index 583378c98ebeeccd4e315619efcdf6acdad93da5..129fb3b86213d4fc2024988908a98774d7bfc6f7 100644 (file)
@@ -54,7 +54,7 @@ inline bool ModuleAnalyzer::handleType(set<const Type *> &TypeSet,
   }
 
   case Type::PointerTyID:
-    if (handleType(TypeSet, ((const PointerType *)T)->getValueType()))
+    if (handleType(TypeSet, cast<const PointerType>(T)->getElementType()))
       return true;
     break;