Skip to content

Commit 6731f15

Browse files
authored
[clang][bytecode] Remove unused InRange function (#146509)
1 parent d9d9ab8 commit 6731f15

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

clang/lib/AST/ByteCode/Interp.h

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1332,20 +1332,6 @@ bool GE(InterpState &S, CodePtr OpPC) {
13321332
});
13331333
}
13341334

1335-
//===----------------------------------------------------------------------===//
1336-
// InRange
1337-
//===----------------------------------------------------------------------===//
1338-
1339-
template <PrimType Name, class T = typename PrimConv<Name>::T>
1340-
bool InRange(InterpState &S, CodePtr OpPC) {
1341-
const T RHS = S.Stk.pop<T>();
1342-
const T LHS = S.Stk.pop<T>();
1343-
const T Value = S.Stk.pop<T>();
1344-
1345-
S.Stk.push<bool>(LHS <= Value && Value <= RHS);
1346-
return true;
1347-
}
1348-
13491335
//===----------------------------------------------------------------------===//
13501336
// Dup, Pop, Test
13511337
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)