diff options
author | Brian Gesiak <modocache@gmail.com> | 2019-01-11 01:54:53 +0000 |
---|---|---|
committer | Brian Gesiak <modocache@gmail.com> | 2019-01-11 01:54:53 +0000 |
commit | 5488ab4ddd47af2151d79940e805914da56d6562 (patch) | |
tree | 8ad5b4aa3f9b7e7f17e5cd49d1d4a0a744185793 /clang/lib/StaticAnalyzer/Core/MemRegion.cpp | |
parent | f8b8b39c60f8d6558a38806c785f824d1b3174c0 (diff) | |
download | bcm5719-llvm-5488ab4ddd47af2151d79940e805914da56d6562.tar.gz bcm5719-llvm-5488ab4ddd47af2151d79940e805914da56d6562.zip |
[AST] Remove ASTContext from getThisType (NFC)
Summary:
https://reviews.llvm.org/D54862 removed the usages of `ASTContext&` from
within the `CXXMethodDecl::getThisType` method. Remove the parameter
altogether, as well as all usages of it. This does not result in any
functional change because the parameter was unused since
https://reviews.llvm.org/D54862.
Test Plan: check-clang
Reviewers: akyrtzi, mikael
Reviewed By: mikael
Subscribers: mehdi_amini, dexonsmith, cfe-commits
Differential Revision: https://reviews.llvm.org/D56509
llvm-svn: 350914
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/MemRegion.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Core/MemRegion.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/MemRegion.cpp b/clang/lib/StaticAnalyzer/Core/MemRegion.cpp index da368de3226..9a1d4d73c20 100644 --- a/clang/lib/StaticAnalyzer/Core/MemRegion.cpp +++ b/clang/lib/StaticAnalyzer/Core/MemRegion.cpp @@ -1105,9 +1105,8 @@ MemRegionManager::getCXXThisRegion(QualType thisPointerTy, // FIXME: when operator() of lambda is analyzed as a top level function and // 'this' refers to a this to the enclosing scope, there is no right region to // return. - while (!LC->inTopFrame() && - (!D || D->isStatic() || - PT != D->getThisType(getContext())->getAs<PointerType>())) { + while (!LC->inTopFrame() && (!D || D->isStatic() || + PT != D->getThisType()->getAs<PointerType>())) { LC = LC->getParent(); D = dyn_cast<CXXMethodDecl>(LC->getDecl()); } |