diff options
Diffstat (limited to 'clang/lib/Checker')
-rw-r--r-- | clang/lib/Checker/MemRegion.cpp | 2 | ||||
-rw-r--r-- | clang/lib/Checker/RegionStore.cpp | 2 | ||||
-rw-r--r-- | clang/lib/Checker/Store.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Checker/MemRegion.cpp b/clang/lib/Checker/MemRegion.cpp index cfa855e195c..194015a11b1 100644 --- a/clang/lib/Checker/MemRegion.cpp +++ b/clang/lib/Checker/MemRegion.cpp @@ -681,7 +681,7 @@ const MemRegion *MemRegion::StripCasts() const { static bool IsCompleteType(ASTContext &Ctx, QualType Ty) { if (const RecordType *RT = Ty->getAs<RecordType>()) { const RecordDecl *D = RT->getDecl(); - if (!D->getDefinition(Ctx)) + if (!D->getDefinition()) return false; } diff --git a/clang/lib/Checker/RegionStore.cpp b/clang/lib/Checker/RegionStore.cpp index d97fdbb7fd0..4a8d9a0b0a9 100644 --- a/clang/lib/Checker/RegionStore.cpp +++ b/clang/lib/Checker/RegionStore.cpp @@ -606,7 +606,7 @@ Store InvalidateRegionsWorker::InvalidateRegions(RegionStoreManager &RM, // Invalidate the binding. if (const RecordType *RT = T->getAsStructureType()) { - const RecordDecl *RD = RT->getDecl()->getDefinition(Ctx); + const RecordDecl *RD = RT->getDecl()->getDefinition(); // No record definition. There is nothing we can do. if (!RD) { B = RM.Remove(B, baseR); diff --git a/clang/lib/Checker/Store.cpp b/clang/lib/Checker/Store.cpp index d68369dfa5d..e524cb3d7cc 100644 --- a/clang/lib/Checker/Store.cpp +++ b/clang/lib/Checker/Store.cpp @@ -31,7 +31,7 @@ const MemRegion *StoreManager::MakeElementRegion(const MemRegion *Base, static bool IsCompleteType(ASTContext &Ctx, QualType Ty) { if (const RecordType *RT = Ty->getAs<RecordType>()) { const RecordDecl *D = RT->getDecl(); - if (!D->getDefinition(Ctx)) + if (!D->getDefinition()) return false; } |