summaryrefslogtreecommitdiffstats
path: root/clang/lib
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
commit6dd263e31ba59d70d7bb678a8ecbf90aa9cf6358 (patch)
tree958df6414688618bbf80555dca0ead09b8373673 /clang/lib
parent76e66c1d607c63ac1f64e9d3f612976910358fe4 (diff)
downloadbcm5719-llvm-6dd263e31ba59d70d7bb678a8ecbf90aa9cf6358.tar.gz
bcm5719-llvm-6dd263e31ba59d70d7bb678a8ecbf90aa9cf6358.zip
Reverting r119341: doesn't compile, no obvious fix.
llvm-svn: 119342
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Checker/GRCXXExprEngine.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Checker/GRCXXExprEngine.cpp b/clang/lib/Checker/GRCXXExprEngine.cpp
index 4984305f00d..072c21e7218 100644
--- a/clang/lib/Checker/GRCXXExprEngine.cpp
+++ b/clang/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);
}
OpenPOWER on IntegriCloud