Skip to content

Commit 98d68e4

Browse files
authored
[clang][bytecode][NFC] Remove unused function (llvm#139355)
1 parent 9bd38bf commit 98d68e4

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

clang/lib/AST/ByteCode/Interp.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -942,15 +942,6 @@ bool CheckThis(InterpState &S, CodePtr OpPC, const Pointer &This) {
942942
return false;
943943
}
944944

945-
bool CheckPure(InterpState &S, CodePtr OpPC, const CXXMethodDecl *MD) {
946-
if (!MD->isPureVirtual())
947-
return true;
948-
const SourceInfo &E = S.Current->getSource(OpPC);
949-
S.FFDiag(E, diag::note_constexpr_pure_virtual_call, 1) << MD;
950-
S.Note(MD->getLocation(), diag::note_declared_at);
951-
return false;
952-
}
953-
954945
bool CheckFloatResult(InterpState &S, CodePtr OpPC, const Floating &Result,
955946
APFloat::opStatus Status, FPOptions FPO) {
956947
// [expr.pre]p4:

clang/lib/AST/ByteCode/Interp.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,6 @@ bool CheckCallDepth(InterpState &S, CodePtr OpPC);
114114
/// Checks the 'this' pointer.
115115
bool CheckThis(InterpState &S, CodePtr OpPC, const Pointer &This);
116116

117-
/// Checks if a method is pure virtual.
118-
bool CheckPure(InterpState &S, CodePtr OpPC, const CXXMethodDecl *MD);
119-
120117
/// Checks if all the arguments annotated as 'nonnull' are in fact not null.
121118
bool CheckNonNullArgs(InterpState &S, CodePtr OpPC, const Function *F,
122119
const CallExpr *CE, unsigned ArgSize);

0 commit comments

Comments
 (0)