[clang] 6731f15 - [clang][bytecode] Remove unused InRange function (#146509)

via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 1 05:42:03 PDT 2025


Author: Timm Baeder
Date: 2025-07-01T14:42:00+02:00
New Revision: 6731f151ea158c780de85dac9aa545c8118cda2a

URL: https://github.com/llvm/llvm-project/commit/6731f151ea158c780de85dac9aa545c8118cda2a
DIFF: https://github.com/llvm/llvm-project/commit/6731f151ea158c780de85dac9aa545c8118cda2a.diff

LOG: [clang][bytecode] Remove unused InRange function (#146509)

Added: 
    

Modified: 
    clang/lib/AST/ByteCode/Interp.h

Removed: 
    


################################################################################
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
 //===----------------------------------------------------------------------===//


        


More information about the cfe-commits mailing list