[clang] [clang][bytecode] Remove unused InRange function (PR #146509)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 1 04:39:33 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Timm Baeder (tbaederr)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/146509.diff
1 Files Affected:
- (modified) clang/lib/AST/ByteCode/Interp.h (-14)
``````````diff
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
//===----------------------------------------------------------------------===//
``````````
</details>
https://github.com/llvm/llvm-project/pull/146509
More information about the cfe-commits
mailing list