From: John McCall Date: Tue, 16 Nov 2010 09:18:38 +0000 (+0000) Subject: Reverting r119341: doesn't compile, no obvious fix. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b168cbfa1ca9b50115f8dd787d11d272fff2ad81;p=clang 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 --- 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); }