aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/AST/ByteCode/Interp.cpp
diff options
context:
space:
mode:
authorTimm Baeder <tbaeder@redhat.com>2025-05-10 07:57:44 +0200
committerGitHub <noreply@github.com>2025-05-10 07:57:44 +0200
commit98d68e49f73efab7126a34fa2469a590e832afa4 (patch)
tree5b6b834804352539336d3e5a311237134378b973 /clang/lib/AST/ByteCode/Interp.cpp
parent9bd38bfca3debd9554c71b5325fd52ba516f2bdd (diff)
downloadllvm-98d68e49f73efab7126a34fa2469a590e832afa4.zip
llvm-98d68e49f73efab7126a34fa2469a590e832afa4.tar.gz
llvm-98d68e49f73efab7126a34fa2469a590e832afa4.tar.bz2
[clang][bytecode][NFC] Remove unused function (#139355)
Diffstat (limited to 'clang/lib/AST/ByteCode/Interp.cpp')
-rw-r--r--clang/lib/AST/ByteCode/Interp.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/clang/lib/AST/ByteCode/Interp.cpp b/clang/lib/AST/ByteCode/Interp.cpp
index 9c041ad..43f8d15 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: