Skip to content

Commit

Permalink
[clang][Interp][NFC] Clean up InterpState.cpp
Browse files Browse the repository at this point in the history
Remove unused includes, an unused using alias and braces in single-line
if statements.
  • Loading branch information
tbaederr committed Feb 28, 2023
1 parent 24322fc commit edeb0f4
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions clang/lib/AST/Interp/InterpState.cpp
Expand Up @@ -7,20 +7,14 @@
//===----------------------------------------------------------------------===//

#include "InterpState.h"
#include <limits>
#include "Function.h"
#include "InterpFrame.h"
#include "InterpStack.h"
#include "Opcode.h"
#include "PrimType.h"
#include "Program.h"
#include "State.h"

using namespace clang;
using namespace clang::interp;

using APSInt = llvm::APSInt;

InterpState::InterpState(State &Parent, Program &P, InterpStack &Stk,
Context &Ctx, SourceMapper *M)
: Parent(Parent), M(M), P(P), Stk(Stk), Ctx(Ctx), Current(nullptr),
Expand All @@ -41,11 +35,9 @@ InterpState::~InterpState() {
}

Frame *InterpState::getCurrentFrame() {
if (Current && Current->Caller) {
if (Current && Current->Caller)
return Current;
} else {
return Parent.getCurrentFrame();
}
return Parent.getCurrentFrame();
}

bool InterpState::reportOverflow(const Expr *E, const llvm::APSInt &Value) {
Expand Down

0 comments on commit edeb0f4

Please sign in to comment.