translate-c: update to clang 6.0.0 which has more binary operators

This commit is contained in:
Andrew Kelley 2018-01-05 13:53:04 -05:00
parent 5d9a8cbe1a
commit 2200c2de6f

View File

@ -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);