]> granicus.if.org Git - clang/commit
Fix a bug in the emission of __real/__imag l-values on scalar operands.
authorJohn McCall <rjmccall@apple.com>
Sun, 5 Dec 2010 02:00:02 +0000 (02:00 +0000)
committerJohn McCall <rjmccall@apple.com>
Sun, 5 Dec 2010 02:00:02 +0000 (02:00 +0000)
commit2a41637a995affa1563f4d82a8b026e326a2faa0
tree721f477e4c3c69354d9d4365bd5bc124b493c64c
parent560bf12e97773ba19e55382c32f8b64cd8315315
Fix a bug in the emission of __real/__imag l-values on scalar operands.
Fix a bug in the emission of complex compound assignment l-values.
Introduce a method to emit an expression whose value isn't relevant.
Make that method evaluate its operand as an l-value if it is one.
Fixes our volatile compliance in C++.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120931 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGExpr.cpp
lib/CodeGen/CGExprAgg.cpp
lib/CodeGen/CGExprComplex.cpp
lib/CodeGen/CGExprScalar.cpp
lib/CodeGen/CGObjC.cpp
lib/CodeGen/CGStmt.cpp
lib/CodeGen/CodeGenFunction.h
test/CodeGenCXX/volatile-1.cpp
test/CodeGenCXX/volatile.cpp