aboutsummaryrefslogtreecommitdiff
path: root/lib/Checker/GRCXXExprEngine.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-11-16 09:18:38 +0000
committerJohn McCall <rjmccall@apple.com>2010-11-16 09:18:38 +0000
commitb168cbfa1ca9b50115f8dd787d11d272fff2ad81 (patch)
tree3899802017747e6ef9fcefcb326b505607145e60 /lib/Checker/GRCXXExprEngine.cpp
parent051beb55e003086a8c974d2b9db3b4cbe8ea083c (diff)
Reverting r119341: doesn't compile, no obvious fix.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119342 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Checker/GRCXXExprEngine.cpp')
-rw-r--r--lib/Checker/GRCXXExprEngine.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Checker/GRCXXExprEngine.cpp b/lib/Checker/GRCXXExprEngine.cpp
index 4984305f00..072c21e721 100644
--- a/lib/Checker/GRCXXExprEngine.cpp
+++ b/lib/Checker/GRCXXExprEngine.cpp
@@ -66,7 +66,8 @@ void GRExprEngine::EvalArguments(ConstExprIterator AI, ConstExprIterator AE,
const CXXThisRegion *GRExprEngine::getCXXThisRegion(const CXXRecordDecl *D,
const StackFrameContext *SFC) {
- QualType PT = D->getThisType(getContext());
+ Type *T = D->getTypeForDecl();
+ QualType PT = getContext().getPointerType(QualType(T, 0));
return ValMgr.getRegionManager().getCXXThisRegion(PT, SFC);
}