diff options
| author | Nico Weber <nicolasweber@gmx.de> | 2015-02-13 16:27:00 +0000 |
|---|---|---|
| committer | Nico Weber <nicolasweber@gmx.de> | 2015-02-13 16:27:00 +0000 |
| commit | 5047124372d0a9b7e53ed1c5c91ab187cf1df3a6 (patch) | |
| tree | e7bacc7d3ec97b6a1cef1bd458238eedf1900f32 /lib/CodeGen/CGExprComplex.cpp | |
| parent | 51029fb98b2609cf822b0d4cf75eb2a6b5dc2b6c (diff) | |
| download | clang-5047124372d0a9b7e53ed1c5c91ab187cf1df3a6.tar.gz | |
Revert r229082 for a bit, it caused PR22577.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@229123 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprComplex.cpp')
| -rw-r--r-- | lib/CodeGen/CGExprComplex.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/CGExprComplex.cpp b/lib/CodeGen/CGExprComplex.cpp index 1fea5a127c..ceec85a9a8 100644 --- a/lib/CodeGen/CGExprComplex.cpp +++ b/lib/CodeGen/CGExprComplex.cpp @@ -336,8 +336,7 @@ ComplexPairTy ComplexExprEmitter::EmitLoadOfLValue(LValue lvalue, /// specified value pointer. void ComplexExprEmitter::EmitStoreOfComplex(ComplexPairTy Val, LValue lvalue, bool isInit) { - if (lvalue.getType()->isAtomicType() || - (!isInit && CGF.LValueIsSuitableForInlineAtomic(lvalue))) + if (lvalue.getType()->isAtomicType()) return CGF.EmitAtomicStore(RValue::getComplex(Val), lvalue, isInit); llvm::Value *Ptr = lvalue.getAddress(); |
