diff options
| author | Marcin Swiderski <marcin.sfider@gmail.com> | 2010-11-16 08:50:38 +0000 |
|---|---|---|
| committer | Marcin Swiderski <marcin.sfider@gmail.com> | 2010-11-16 08:50:38 +0000 |
| commit | 76e66c1d607c63ac1f64e9d3f612976910358fe4 (patch) | |
| tree | 2707703334c7f72de37f0c920e3e51aed9f92f77 /clang/lib | |
| parent | 1c8383dccd4729f6e35982a82601f1985267e127 (diff) | |
| download | bcm5719-llvm-76e66c1d607c63ac1f64e9d3f612976910358fe4.tar.gz bcm5719-llvm-76e66c1d607c63ac1f64e9d3f612976910358fe4.zip | |
Refactored GRExprEngine::getCXXThisRegion to use CXXMethodDecl::getThisType instead of calculating it by hand.
llvm-svn: 119341
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Checker/GRCXXExprEngine.cpp | 3 |
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); } |

