aboutsummaryrefslogtreecommitdiff
path: root/lib/Checker/GRCXXExprEngine.cpp
diff options
context:
space:
mode:
authorMarcin Swiderski <marcin.sfider@gmail.com>2010-11-16 08:50:38 +0000
committerMarcin Swiderski <marcin.sfider@gmail.com>2010-11-16 08:50:38 +0000
commit051beb55e003086a8c974d2b9db3b4cbe8ea083c (patch)
tree84398bb70217318363678497fee8fffd8ccc9110 /lib/Checker/GRCXXExprEngine.cpp
parent9263a3060087eb7b5954ec4ee1ff2c22227b422e (diff)
Refactored GRExprEngine::getCXXThisRegion to use CXXMethodDecl::getThisType instead of calculating it by hand.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119341 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Checker/GRCXXExprEngine.cpp')
-rw-r--r--lib/Checker/GRCXXExprEngine.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Checker/GRCXXExprEngine.cpp b/lib/Checker/GRCXXExprEngine.cpp
index 072c21e721..4984305f00 100644
--- a/lib/Checker/GRCXXExprEngine.cpp
+++ b/lib/Checker/GRCXXExprEngine.cpp
@@ -66,8 +66,7 @@ void GRExprEngine::EvalArguments(ConstExprIterator AI, ConstExprIterator AE,
const CXXThisRegion *GRExprEngine::getCXXThisRegion(const CXXRecordDecl *D,
const StackFrameContext *SFC) {
- Type *T = D->getTypeForDecl();
- QualType PT = getContext().getPointerType(QualType(T, 0));
+ QualType PT = D->getThisType(getContext());
return ValMgr.getRegionManager().getCXXThisRegion(PT, SFC);
}