Skip to content

Commit

Permalink
Merge pull request #325 from tonybaloney/forward_decls
Browse files Browse the repository at this point in the history
Clean up some forward declaration warnings
  • Loading branch information
tonybaloney authored Jul 19, 2021
2 parents e8e2e62 + f85bdbe commit beebf40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/pyjion/codemodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class JITMethod : public BaseMethod {
m_addr = addr;
}

JITMethod(BaseModule *module, CorInfoType returnType, vector<struct Parameter> params, void* addr,
JITMethod(BaseModule *module, CorInfoType returnType, vector<Parameter> params, void* addr,
const vector<pair<size_t, uint32_t>>& sequencePoints,
const vector<pair<size_t, int32_t>>& callPoints) :
JITMethod(module, returnType, std::move(params), addr){
Expand Down
4 changes: 2 additions & 2 deletions src/pyjion/instructions.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@

using namespace std;

class InterpreterStack;

#define SIZEOF_CODEUNIT sizeof(_Py_CODEUNIT)
#define GET_OPARG(index) (py_oparg)_Py_OPARG(mByteCode[(index)/SIZEOF_CODEUNIT])
#define GET_OPCODE(index) (py_opcode)_Py_OPCODE(mByteCode[(index)/SIZEOF_CODEUNIT])

struct InterpreterStack; // forward decl

enum EscapeTransition {
// Boxed -> Boxed = NoEscape
// Boxed -> Unboxed = Unbox
Expand Down

0 comments on commit beebf40

Please sign in to comment.