Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
c0be1c00
Commit
c0be1c00
authored
Oct 26, 2015
by
Kevin Modzelewski
Committed by
Kevin Modzelewski
Oct 26, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make gcc happy
parent
f8de546c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
src/codegen/cpython_ast.cpp
src/codegen/cpython_ast.cpp
+11
-0
No files found.
src/codegen/cpython_ast.cpp
View file @
c0be1c00
...
...
@@ -133,6 +133,8 @@ public:
CASE
(
BitAnd
);
CASE
(
FloorDiv
);
}
// GCC wants this:
RELEASE_ASSERT
(
0
,
"invalid operator: %d"
,
op
);
}
AST_TYPE
::
AST_TYPE
convert
(
boolop_ty
op
)
{
...
...
@@ -140,6 +142,8 @@ public:
CASE
(
Add
);
CASE
(
Or
);
}
// GCC wants this:
RELEASE_ASSERT
(
0
,
"invalid operator: %d"
,
op
);
}
AST_TYPE
::
AST_TYPE
convert
(
unaryop_ty
op
)
{
...
...
@@ -149,6 +153,8 @@ public:
CASE
(
UAdd
);
CASE
(
USub
);
}
// GCC wants this:
RELEASE_ASSERT
(
0
,
"invalid operator: %d"
,
op
);
}
AST_TYPE
::
AST_TYPE
convert
(
cmpop_ty
op
)
{
...
...
@@ -164,6 +170,8 @@ public:
CASE
(
In
);
CASE
(
NotIn
);
}
// GCC wants this:
RELEASE_ASSERT
(
0
,
"invalid operator: %d"
,
op
);
}
#undef CASE
...
...
@@ -207,6 +215,7 @@ public:
case
Ellipsis_kind
:
return
new
AST_Ellipsis
();
}
RELEASE_ASSERT
(
0
,
"invalid slice type: %d"
,
slice
->
kind
);
}
AST_expr
*
_convert
(
expr_ty
expr
)
{
...
...
@@ -631,6 +640,8 @@ public:
fn
,
""
,
true
);
return
new
AST_Continue
();
};
// GCC wants this:
RELEASE_ASSERT
(
0
,
"invalid statement type: %d"
,
stmt
->
kind
);
}
AST_stmt
*
convert
(
stmt_ty
stmt
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment