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 | 7ce96b853dffeca7e37c78fa4a02fe8415b3ab9b (patch) | |
tree | ac285eddc707325d791f53080aba8a6c26b313f9 /clang/lib/CodeGen/CGExprComplex.cpp | |
parent | 3236c7245846d87dfdfe110ad1d098ca10abc961 (diff) | |
download | bcm5719-llvm-7ce96b853dffeca7e37c78fa4a02fe8415b3ab9b.tar.gz bcm5719-llvm-7ce96b853dffeca7e37c78fa4a02fe8415b3ab9b.zip |
Revert r229082 for a bit, it caused PR22577.
llvm-svn: 229123
Diffstat (limited to 'clang/lib/CodeGen/CGExprComplex.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGExprComplex.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGExprComplex.cpp b/clang/lib/CodeGen/CGExprComplex.cpp index 1fea5a127c0..ceec85a9a89 100644 --- a/clang/lib/CodeGen/CGExprComplex.cpp +++ b/clang/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(); |