Commit c0be1c00 authored by Kevin Modzelewski's avatar Kevin Modzelewski Committed by Kevin Modzelewski

Make gcc happy

parent f8de546c
...@@ -133,6 +133,8 @@ public: ...@@ -133,6 +133,8 @@ public:
CASE(BitAnd); CASE(BitAnd);
CASE(FloorDiv); CASE(FloorDiv);
} }
// GCC wants this:
RELEASE_ASSERT(0, "invalid operator: %d", op);
} }
AST_TYPE::AST_TYPE convert(boolop_ty op) { AST_TYPE::AST_TYPE convert(boolop_ty op) {
...@@ -140,6 +142,8 @@ public: ...@@ -140,6 +142,8 @@ public:
CASE(Add); CASE(Add);
CASE(Or); CASE(Or);
} }
// GCC wants this:
RELEASE_ASSERT(0, "invalid operator: %d", op);
} }
AST_TYPE::AST_TYPE convert(unaryop_ty op) { AST_TYPE::AST_TYPE convert(unaryop_ty op) {
...@@ -149,6 +153,8 @@ public: ...@@ -149,6 +153,8 @@ public:
CASE(UAdd); CASE(UAdd);
CASE(USub); CASE(USub);
} }
// GCC wants this:
RELEASE_ASSERT(0, "invalid operator: %d", op);
} }
AST_TYPE::AST_TYPE convert(cmpop_ty op) { AST_TYPE::AST_TYPE convert(cmpop_ty op) {
...@@ -164,6 +170,8 @@ public: ...@@ -164,6 +170,8 @@ public:
CASE(In); CASE(In);
CASE(NotIn); CASE(NotIn);
} }
// GCC wants this:
RELEASE_ASSERT(0, "invalid operator: %d", op);
} }
#undef CASE #undef CASE
...@@ -207,6 +215,7 @@ public: ...@@ -207,6 +215,7 @@ public:
case Ellipsis_kind: case Ellipsis_kind:
return new AST_Ellipsis(); return new AST_Ellipsis();
} }
RELEASE_ASSERT(0, "invalid slice type: %d", slice->kind);
} }
AST_expr* _convert(expr_ty expr) { AST_expr* _convert(expr_ty expr) {
...@@ -631,6 +640,8 @@ public: ...@@ -631,6 +640,8 @@ public:
fn, "", true); fn, "", true);
return new AST_Continue(); return new AST_Continue();
}; };
// GCC wants this:
RELEASE_ASSERT(0, "invalid statement type: %d", stmt->kind);
} }
AST_stmt* convert(stmt_ty stmt) { AST_stmt* convert(stmt_ty stmt) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment