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 583378c98e..129fb3b862 100644 --- a/lib/Analysis/ModuleAnalyzer.cpp +++ b/lib/Analysis/ModuleAnalyzer.cpp @@ -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; |