mirror of
https://github.com/ziglang/zig.git
synced 2026-02-03 05:03:38 +00:00
translate-c: update to clang 6.0.0 which has more binary operators
This commit is contained in:
parent
5d9a8cbe1a
commit
2200c2de6f
@ -1214,6 +1214,9 @@ static AstNode *trans_binary_operator(Context *c, ResultUsed result_used, TransS
|
||||
case BO_PtrMemI:
|
||||
emit_warning(c, stmt->getLocStart(), "TODO handle more C binary operators: BO_PtrMemI");
|
||||
return nullptr;
|
||||
case BO_Cmp:
|
||||
emit_warning(c, stmt->getLocStart(), "TODO handle more C binary operators: BO_Cmp");
|
||||
return nullptr;
|
||||
case BO_Mul:
|
||||
return trans_create_bin_op(c, scope, stmt->getLHS(),
|
||||
qual_type_has_wrapping_overflow(c, stmt->getType()) ? BinOpTypeMultWrap : BinOpTypeMult,
|
||||
@ -1476,6 +1479,9 @@ static AstNode *trans_compound_assign_operator(Context *c, ResultUsed result_use
|
||||
case BO_RemAssign:
|
||||
emit_warning(c, stmt->getLocStart(), "TODO handle more C compound assign operators: BO_RemAssign");
|
||||
return nullptr;
|
||||
case BO_Cmp:
|
||||
emit_warning(c, stmt->getLocStart(), "TODO handle more C compound assign operators: BO_Cmp");
|
||||
return nullptr;
|
||||
case BO_AddAssign:
|
||||
if (qual_type_has_wrapping_overflow(c, stmt->getType()))
|
||||
return trans_create_compound_assign(c, result_used, scope, stmt, BinOpTypeAssignPlusWrap, BinOpTypeAddWrap);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user