From 6731f151ea158c780de85dac9aa545c8118cda2a Mon Sep 17 00:00:00 2001 From: Timm Baeder Date: Tue, 1 Jul 2025 14:42:00 +0200 Subject: [PATCH] [clang][bytecode] Remove unused InRange function (#146509) --- 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 dcc458775197..94ab59cc59c9 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 ::T> -bool InRange(InterpState &S, CodePtr OpPC) { - const T RHS = S.Stk.pop(); - const T LHS = S.Stk.pop(); - const T Value = S.Stk.pop(); - - S.Stk.push(LHS <= Value && Value <= RHS); - return true; -} - //===----------------------------------------------------------------------===// // Dup, Pop, Test //===----------------------------------------------------------------------===//