Skip to content

Commit 5c8c59d

Browse files
authored
[clang][bytecode] Remove unused reportOverflow() (#157225)
1 parent 7896ee7 commit 5c8c59d

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

clang/lib/AST/ByteCode/InterpState.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,6 @@ void InterpState::cleanup() {
7373

7474
Frame *InterpState::getCurrentFrame() { return Current; }
7575

76-
bool InterpState::reportOverflow(const Expr *E, const llvm::APSInt &Value) {
77-
QualType Type = E->getType();
78-
CCEDiag(E, diag::note_constexpr_overflow) << Value << Type;
79-
return noteUndefinedBehavior();
80-
}
81-
8276
void InterpState::deallocate(Block *B) {
8377
assert(B);
8478
assert(!B->isDynamic());

clang/lib/AST/ByteCode/InterpState.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,6 @@ class InterpState final : public State, public SourceMapper {
9090
bool hasPriorDiagnostic() override { return Parent.hasPriorDiagnostic(); }
9191
bool noteSideEffect() override { return Parent.noteSideEffect(); }
9292

93-
/// Reports overflow and return true if evaluation should continue.
94-
bool reportOverflow(const Expr *E, const llvm::APSInt &Value);
95-
9693
/// Deallocates a pointer.
9794
void deallocate(Block *B);
9895

0 commit comments

Comments
 (0)