diff options
author | JF Bastien <jfb@google.com> | 2016-04-06 17:26:42 +0000 |
---|---|---|
committer | JF Bastien <jfb@google.com> | 2016-04-06 17:26:42 +0000 |
commit | a84ed3210d3b42918ee03ff86f5afca1b23476c0 (patch) | |
tree | 541448512b5faba6aa8ad82ed1815b3429f0c09c /lib/CodeGen/CGObjC.cpp | |
parent | 017686a2280ce0ae505b6f081b3bd4e66f3239dc (diff) |
NFC: make AtomicOrdering an enum class
Summary: See LLVM change D18775 for details, this change depends on it.
Reviewers: jyknight, reames
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D18776
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@265569 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGObjC.cpp')
-rw-r--r-- | lib/CodeGen/CGObjC.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/CGObjC.cpp b/lib/CodeGen/CGObjC.cpp index 1c16559461..3bd970c899 100644 --- a/lib/CodeGen/CGObjC.cpp +++ b/lib/CodeGen/CGObjC.cpp @@ -906,7 +906,7 @@ CodeGenFunction::generateObjCGetterBody(const ObjCImplementationDecl *classImpl, Address ivarAddr = LV.getAddress(); ivarAddr = Builder.CreateBitCast(ivarAddr, bitcastType); llvm::LoadInst *load = Builder.CreateLoad(ivarAddr, "load"); - load->setAtomic(llvm::Unordered); + load->setAtomic(llvm::AtomicOrdering::Unordered); // Store that value into the return address. Doing this with a // bitcast is likely to produce some pretty ugly IR, but it's not @@ -1183,7 +1183,7 @@ CodeGenFunction::generateObjCSetterBody(const ObjCImplementationDecl *classImpl, // Perform an atomic store. There are no memory ordering requirements. llvm::StoreInst *store = Builder.CreateStore(load, ivarAddr); - store->setAtomic(llvm::Unordered); + store->setAtomic(llvm::AtomicOrdering::Unordered); return; } |