]> granicus.if.org Git - clang/commitdiff
Reverting r119341: doesn't compile, no obvious fix.
authorJohn McCall <rjmccall@apple.com>
Tue, 16 Nov 2010 09:18:38 +0000 (09:18 +0000)
committerJohn McCall <rjmccall@apple.com>
Tue, 16 Nov 2010 09:18:38 +0000 (09:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119342 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Checker/GRCXXExprEngine.cpp

index 4984305f00d958d4fbc8622f6283dced19269d09..072c21e721873c6a48d8c4d99eb98967dd57a82c 100644 (file)
@@ -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);
 }