forked from OSchip/llvm-project
parent
0e4b101222
commit
527473df0d
|
@ -1086,8 +1086,8 @@ EmitComplexCompoundAssignmentLValue(const CompoundAssignOperator *E) {
|
|||
}
|
||||
|
||||
LValue CodeGenFunction::
|
||||
EmitScalarCompooundAssignWithComplex(const CompoundAssignOperator *E,
|
||||
llvm::Value *&Result) {
|
||||
EmitScalarCompoundAssignWithComplex(const CompoundAssignOperator *E,
|
||||
llvm::Value *&Result) {
|
||||
CompoundFunc Op = getComplexOp(E->getOpcode());
|
||||
RValue Val;
|
||||
LValue Ret = ComplexExprEmitter(*this).EmitCompoundAssignLValue(E, Op, Val);
|
||||
|
|
|
@ -2056,7 +2056,7 @@ LValue ScalarExprEmitter::EmitCompoundAssignLValue(
|
|||
BinOpInfo OpInfo;
|
||||
|
||||
if (E->getComputationResultType()->isAnyComplexType())
|
||||
return CGF.EmitScalarCompooundAssignWithComplex(E, Result);
|
||||
return CGF.EmitScalarCompoundAssignWithComplex(E, Result);
|
||||
|
||||
// Emit the RHS first. __block variables need to have the rhs evaluated
|
||||
// first, plus this should improve codegen a little.
|
||||
|
|
|
@ -2224,8 +2224,8 @@ public:
|
|||
/// Emit an l-value for an assignment (simple or compound) of complex type.
|
||||
LValue EmitComplexAssignmentLValue(const BinaryOperator *E);
|
||||
LValue EmitComplexCompoundAssignmentLValue(const CompoundAssignOperator *E);
|
||||
LValue EmitScalarCompooundAssignWithComplex(const CompoundAssignOperator *E,
|
||||
llvm::Value *&Result);
|
||||
LValue EmitScalarCompoundAssignWithComplex(const CompoundAssignOperator *E,
|
||||
llvm::Value *&Result);
|
||||
|
||||
// Note: only available for agg return types
|
||||
LValue EmitBinaryOperatorLValue(const BinaryOperator *E);
|
||||
|
|
Loading…
Reference in New Issue