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

This commit is contained in:
Timm Baeder
2025-07-01 14:42:00 +02:00
committed by GitHub
parent d9d9ab8698
commit 6731f151ea

View File

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