diff options
Diffstat (limited to 'lib/Analysis/ModuleAnalyzer.cpp')
-rw-r--r-- | lib/Analysis/ModuleAnalyzer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/ModuleAnalyzer.cpp b/lib/Analysis/ModuleAnalyzer.cpp index 8212287962..d543216349 100644 --- a/lib/Analysis/ModuleAnalyzer.cpp +++ b/lib/Analysis/ModuleAnalyzer.cpp @@ -46,7 +46,7 @@ inline bool ModuleAnalyzer::handleType(set<const Type *> &TypeSet, break; case Type::StructTyID: { - const StructType *ST = (const StructType*)T; + const StructType *ST = cast<const StructType>(T); const StructType::ElementTypes &Elements = ST->getElementTypes(); for (StructType::ElementTypes::const_iterator I = Elements.begin(); I != Elements.end(); ++I) |