[clang] f2a6fe6 - Remove an unused private data member; NFC
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 14 08:32:20 PDT 2023
Author: Aaron Ballman
Date: 2023-03-14T11:32:11-04:00
New Revision: f2a6fe601a862b4520266cd660ae4a130886ef33
URL: https://github.com/llvm/llvm-project/commit/f2a6fe601a862b4520266cd660ae4a130886ef33
DIFF: https://github.com/llvm/llvm-project/commit/f2a6fe601a862b4520266cd660ae4a130886ef33.diff
LOG: Remove an unused private data member; NFC
Added:
Modified:
clang/lib/Sema/SemaStmt.cpp
Removed:
################################################################################
diff --git a/clang/lib/Sema/SemaStmt.cpp b/clang/lib/Sema/SemaStmt.cpp
index eda4e01f8f0f..3e0b3c2b953f 100644
--- a/clang/lib/Sema/SemaStmt.cpp
+++ b/clang/lib/Sema/SemaStmt.cpp
@@ -4401,7 +4401,6 @@ template <> struct DenseMapInfo<CatchHandlerType> {
namespace {
class CatchTypePublicBases {
- ASTContext &Ctx;
const llvm::DenseMap<QualType, CXXCatchStmt *> &TypesToCheck;
CXXCatchStmt *FoundHandler;
@@ -4409,10 +4408,9 @@ class CatchTypePublicBases {
QualType TestAgainstType;
public:
- CatchTypePublicBases(ASTContext &Ctx,
- const llvm::DenseMap<QualType, CXXCatchStmt *> &T,
+ CatchTypePublicBases(const llvm::DenseMap<QualType, CXXCatchStmt *> &T,
QualType QT)
- : Ctx(Ctx), TypesToCheck(T), FoundHandler(nullptr), TestAgainstType(QT) {}
+ : TypesToCheck(T), FoundHandler(nullptr), TestAgainstType(QT) {}
CXXCatchStmt *getFoundHandler() const { return FoundHandler; }
QualType getFoundHandlerType() const { return FoundHandlerType; }
@@ -4511,7 +4509,7 @@ StmtResult Sema::ActOnCXXTryBlock(SourceLocation TryLoc, Stmt *TryBlock,
// as the original type.
CXXBasePaths Paths;
Paths.setOrigin(RD);
- CatchTypePublicBases CTPB(Context, HandledBaseTypes,
+ CatchTypePublicBases CTPB(HandledBaseTypes,
H->getCaughtType().getCanonicalType());
if (RD->lookupInBases(CTPB, Paths)) {
const CXXCatchStmt *Problem = CTPB.getFoundHandler();
More information about the cfe-commits
mailing list