| 35 | //----------------------------------------------------------------------------- |
| 36 | |
| 37 | static BinaryOperator* mkBinaryOperator(Expr* lhs, Expr* rhs, BinaryOperator::Opcode opc, QualType resType) |
| 38 | { |
| 39 | return BinaryOperator::Create( |
| 40 | GetGlobalAST(), lhs, rhs, opc, resType.getNonReferenceType(), VK_LValue, OK_Ordinary, {}, {}); |
| 41 | } |
| 42 | //----------------------------------------------------------------------------- |
| 43 | |
| 44 | BinaryOperator* Assign(UnaryOperator* var, Expr* assignExpr) |