aboutsummaryrefslogtreecommitdiff
path: root/lib/StaticAnalyzer/Core/CallEvent.cpp
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2012-08-07 05:12:24 +0000
committerAnna Zaks <ganna@apple.com>2012-08-07 05:12:24 +0000
commit8ed21ef726be89ef7151b5ff397631379bd8a537 (patch)
tree4794e502bf86b76054fd18cc9db5ff78e63f4eda /lib/StaticAnalyzer/Core/CallEvent.cpp
parent387611eaf8d8f000283bed0464597bc4e082dd7f (diff)
[analyzer] Address Jordan's review of DynamicTypePropagation.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161391 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Core/CallEvent.cpp')
-rw-r--r--lib/StaticAnalyzer/Core/CallEvent.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/StaticAnalyzer/Core/CallEvent.cpp b/lib/StaticAnalyzer/Core/CallEvent.cpp
index 396e0f6d8d..006ca1043a 100644
--- a/lib/StaticAnalyzer/Core/CallEvent.cpp
+++ b/lib/StaticAnalyzer/Core/CallEvent.cpp
@@ -670,14 +670,14 @@ const Decl *ObjCMethodCall::getRuntimeDefinition() const {
const ObjCObjectPointerType *ReceiverT = 0;
QualType SupersType = E->getSuperType();
if (!SupersType.isNull()) {
- ReceiverT = cast<ObjCObjectPointerType>(SupersType.getTypePtr());
+ ReceiverT = cast<ObjCObjectPointerType>(SupersType);
} else {
const MemRegion *Receiver = getReceiverSVal().getAsRegion();
if (!Receiver)
return 0;
QualType DynType = getState()->getDynamicTypeInfo(Receiver).getType();
- ReceiverT = dyn_cast<ObjCObjectPointerType>(DynType.getTypePtr());
+ ReceiverT = dyn_cast<ObjCObjectPointerType>(DynType);
}
// Lookup the method implementation.