https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/146509
None >From 781729955642e65bf245bf36ec7b9de3a406397a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= <tbae...@redhat.com> Date: Tue, 1 Jul 2025 13:37:09 +0200 Subject: [PATCH] [clang][bytecode] Remove unused InRange function --- clang/lib/AST/ByteCode/Interp.h | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/clang/lib/AST/ByteCode/Interp.h b/clang/lib/AST/ByteCode/Interp.h index dcc4587751974..94ab59cc59c98 100644 --- a/clang/lib/AST/ByteCode/Interp.h +++ b/clang/lib/AST/ByteCode/Interp.h @@ -1332,20 +1332,6 @@ bool GE(InterpState &S, CodePtr OpPC) { }); } -//===----------------------------------------------------------------------===// -// InRange -//===----------------------------------------------------------------------===// - -template <PrimType Name, class T = typename PrimConv<Name>::T> -bool InRange(InterpState &S, CodePtr OpPC) { - const T RHS = S.Stk.pop<T>(); - const T LHS = S.Stk.pop<T>(); - const T Value = S.Stk.pop<T>(); - - S.Stk.push<bool>(LHS <= Value && Value <= RHS); - return true; -} - //===----------------------------------------------------------------------===// // Dup, Pop, Test //===----------------------------------------------------------------------===// _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits