diff options
author | John McCall <rjmccall@apple.com> | 2010-11-16 23:07:28 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-11-16 23:07:28 +0000 |
commit | 83ce9d4a552987d34cbd500e983db8d770232379 (patch) | |
tree | 691cfdcff43a0b22aeeb2d08f0fa7922124f084b /lib/CodeGen/CodeGenFunction.h | |
parent | bee77f75358a5aaf2e2e01ab9cfd37ffc514ed7a (diff) |
Support compound complex operations as l-values in C++. Add a test
case based on CodeGen/volatile-1.c which tests the current C++
semantics, and note the many, many places we fall short of them.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119402 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | lib/CodeGen/CodeGenFunction.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenFunction.h b/lib/CodeGen/CodeGenFunction.h index a3e1eac550..560675e73f 100644 --- a/lib/CodeGen/CodeGenFunction.h +++ b/lib/CodeGen/CodeGenFunction.h @@ -1404,6 +1404,9 @@ public: void EmitStoreThroughBitfieldLValue(RValue Src, LValue Dst, QualType Ty, llvm::Value **Result=0); + /// Emit an l-value for an assignment (simple or compound) of complex type. + LValue EmitComplexAssignmentLValue(const BinaryOperator *E); + // Note: only availabe for agg return types LValue EmitBinaryOperatorLValue(const BinaryOperator *E); LValue EmitCompoundAssignOperatorLValue(const CompoundAssignOperator *E); |