authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-04-26 11:43:18-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2018-04-26 11:43:18-04:00
log4d0b660f4bcde2544f3096225ec28f7940162c30
tree7ca85acfff5f57e674432713661597440fdffe29
parentbbfff4614614726dd2ef2c05f851f91be5368f84

translate-c: add missing decl type from LLVM 7


1 files changed, 3 insertions(+), 0 deletions(-)

src/translate_c.cpp+3
...@@ -2245,6 +2245,9 @@ static int trans_local_declaration(Context *c, TransScope *scope, const DeclStmt...@@ -2245,6 +2245,9 @@ static int trans_local_declaration(Context *c, TransScope *scope, const DeclStmt
2245 case Decl::TranslationUnit:2245 case Decl::TranslationUnit:
2246 emit_warning(c, stmt->getLocStart(), "TODO handle decl kind TranslationUnit");2246 emit_warning(c, stmt->getLocStart(), "TODO handle decl kind TranslationUnit");
2247 return ErrorUnexpected;2247 return ErrorUnexpected;
2248 case Decl::Concept:
2249 emit_warning(c, stmt->getLocStart(), "TODO handle decl kind Concept");
2250 return ErrorUnexpected;
2248 }2251 }
2249 zig_unreachable();2252 zig_unreachable();
2250 }2253 }