diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-08-27 16:26:36 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-08-27 16:26:36 -0400 |
| commit | 2f2215c9f46f0a75ce65803af84984b4a5f3741c (patch) | |
| tree | 2109946b47470eae28c92998321f40565dfc878f /src/analyze.cpp | |
| parent | 526d8425abf91b33e828b964f7d55d70e17780bf (diff) | |
| download | zig-2f2215c9f46f0a75ce65803af84984b4a5f3741c.tar.gz zig-2f2215c9f46f0a75ce65803af84984b4a5f3741c.zip | |
this was intended to be included in the previous commit
Diffstat (limited to 'src/analyze.cpp')
| -rw-r--r-- | src/analyze.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp index 54dd84f166..ccab9170e9 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -1680,14 +1680,6 @@ static TypeTableEntry *analyze_fn_type(CodeGen *g, AstNode *proto_node, Scope *c case TypeTableEntryIdBlock: case TypeTableEntryIdBoundFn: case TypeTableEntryIdMetaType: - if (!calling_convention_allows_zig_types(fn_type_id.cc)) { - add_node_error(g, fn_proto->return_type, - buf_sprintf("return type '%s' not allowed in function with calling convention '%s'", - buf_ptr(&fn_type_id.return_type->name), - calling_convention_name(fn_type_id.cc))); - return g->builtin_types.entry_invalid; - } - return get_generic_fn_type(g, &fn_type_id); case TypeTableEntryIdUnreachable: case TypeTableEntryIdVoid: case TypeTableEntryIdBool: |
