diff options
Diffstat (limited to 'clang/lib/Checker/GRCXXExprEngine.cpp')
| -rw-r--r-- | clang/lib/Checker/GRCXXExprEngine.cpp | 3 |
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); } |

