summaryrefslogtreecommitdiffstats
path: root/clang/lib/Checker/GRCXXExprEngine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Checker/GRCXXExprEngine.cpp')
-rw-r--r--clang/lib/Checker/GRCXXExprEngine.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Checker/GRCXXExprEngine.cpp b/clang/lib/Checker/GRCXXExprEngine.cpp
index 072c21e7218..4984305f00d 100644
--- a/clang/lib/Checker/GRCXXExprEngine.cpp
+++ b/clang/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);
}
OpenPOWER on IntegriCloud