Author: Timm Bäder Date: 2024-01-27T09:06:03+01:00 New Revision: 499507fdec8eb37dc68cee6c2b6c75557b28024e
URL: https://github.com/llvm/llvm-project/commit/499507fdec8eb37dc68cee6c2b6c75557b28024e DIFF: https://github.com/llvm/llvm-project/commit/499507fdec8eb37dc68cee6c2b6c75557b28024e.diff LOG: [clang][Interp][NFC] Remove unused function Added: Modified: clang/lib/AST/Interp/ByteCodeExprGen.h Removed: ################################################################################ diff --git a/clang/lib/AST/Interp/ByteCodeExprGen.h b/clang/lib/AST/Interp/ByteCodeExprGen.h index 2fc61ac4b5d170f..1d5ae46e5634685 100644 --- a/clang/lib/AST/Interp/ByteCodeExprGen.h +++ b/clang/lib/AST/Interp/ByteCodeExprGen.h @@ -263,15 +263,6 @@ class ByteCodeExprGen : public ConstStmtVisitor<ByteCodeExprGen<Emitter>, bool>, template <typename T> bool emitConst(T Value, PrimType Ty, const Expr *E); template <typename T> bool emitConst(T Value, const Expr *E); - /// Returns the CXXRecordDecl for the type of the given expression, - /// or nullptr if no such decl exists. - const CXXRecordDecl *getRecordDecl(const Expr *E) const { - QualType T = E->getType(); - if (const auto *RD = T->getPointeeCXXRecordDecl()) - return RD; - return T->getAsCXXRecordDecl(); - } - llvm::RoundingMode getRoundingMode(const Expr *E) const { FPOptions FPO = E->getFPFeaturesInEffect(Ctx.getLangOpts()); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits