mirror of
https://github.com/ziglang/zig.git
synced 2025-01-19 00:11:37 +00:00
fix translate-c regression
This commit is contained in:
parent
a581f4f0e2
commit
85256521ba
@ -1292,7 +1292,8 @@ static AstNode *trans_integer_literal(Context *c, ResultUsed result_used, const
|
||||
emit_warning(c, stmt->getBeginLoc(), "invalid integer literal");
|
||||
return nullptr;
|
||||
}
|
||||
return trans_create_node_apint(c, result.Val.getInt());
|
||||
AstNode *node = trans_create_node_apint(c, result.Val.getInt());
|
||||
return maybe_suppress_result(c, result_used, node);
|
||||
}
|
||||
|
||||
static AstNode *trans_constant_expr(Context *c, ResultUsed result_used, const clang::ConstantExpr *expr) {
|
||||
|
@ -1015,6 +1015,7 @@ pub const TranslateCContext = struct {
|
||||
\\============================================
|
||||
\\
|
||||
, stderr);
|
||||
printInvocation(zig_args.toSliceConst());
|
||||
return error.TestFailed;
|
||||
}
|
||||
|
||||
@ -1028,6 +1029,7 @@ pub const TranslateCContext = struct {
|
||||
\\{}
|
||||
\\
|
||||
, expected_line, stdout);
|
||||
printInvocation(zig_args.toSliceConst());
|
||||
return error.TestFailed;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user