Author: Timm Baeder Date: 2025-05-10T07:57:44+02:00 New Revision: 98d68e49f73efab7126a34fa2469a590e832afa4
URL: https://github.com/llvm/llvm-project/commit/98d68e49f73efab7126a34fa2469a590e832afa4 DIFF: https://github.com/llvm/llvm-project/commit/98d68e49f73efab7126a34fa2469a590e832afa4.diff LOG: [clang][bytecode][NFC] Remove unused function (#139355) Added: Modified: clang/lib/AST/ByteCode/Interp.cpp clang/lib/AST/ByteCode/Interp.h Removed: ################################################################################ diff --git a/clang/lib/AST/ByteCode/Interp.cpp b/clang/lib/AST/ByteCode/Interp.cpp index 9c041ad782af9..43f8d156589b6 100644 --- a/clang/lib/AST/ByteCode/Interp.cpp +++ b/clang/lib/AST/ByteCode/Interp.cpp @@ -942,15 +942,6 @@ bool CheckThis(InterpState &S, CodePtr OpPC, const Pointer &This) { return false; } -bool CheckPure(InterpState &S, CodePtr OpPC, const CXXMethodDecl *MD) { - if (!MD->isPureVirtual()) - return true; - const SourceInfo &E = S.Current->getSource(OpPC); - S.FFDiag(E, diag::note_constexpr_pure_virtual_call, 1) << MD; - S.Note(MD->getLocation(), diag::note_declared_at); - return false; -} - bool CheckFloatResult(InterpState &S, CodePtr OpPC, const Floating &Result, APFloat::opStatus Status, FPOptions FPO) { // [expr.pre]p4: diff --git a/clang/lib/AST/ByteCode/Interp.h b/clang/lib/AST/ByteCode/Interp.h index c89e68a0c27ba..a13fd6c1f1daa 100644 --- a/clang/lib/AST/ByteCode/Interp.h +++ b/clang/lib/AST/ByteCode/Interp.h @@ -114,9 +114,6 @@ bool CheckCallDepth(InterpState &S, CodePtr OpPC); /// Checks the 'this' pointer. bool CheckThis(InterpState &S, CodePtr OpPC, const Pointer &This); -/// Checks if a method is pure virtual. -bool CheckPure(InterpState &S, CodePtr OpPC, const CXXMethodDecl *MD); - /// Checks if all the arguments annotated as 'nonnull' are in fact not null. bool CheckNonNullArgs(InterpState &S, CodePtr OpPC, const Function *F, const CallExpr *CE, unsigned ArgSize); _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits