Fix a couple silly typos in IRBuilder in the new atomic instructions.
authorEli Friedman <eli.friedman@gmail.com>
Tue, 2 Aug 2011 00:45:35 +0000 (00:45 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Tue, 2 Aug 2011 00:45:35 +0000 (00:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136665 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/IRBuilder.h

index 01244b8bc493ea60e8ac7db206663749fe9e188a..ea90f7a552663801718755d22e51dfc67c0bfdc9 100644 (file)
@@ -770,14 +770,14 @@ public:
                          SynchronizationScope SynchScope = CrossThread) {
     return Insert(new FenceInst(Context, Ordering, SynchScope));
   }
-  FenceInst *CreateAtomicCmpXchg(Value *Ptr, Value *Cmp, Value *New,
-                                 AtomicOrdering Ordering,
-                                 SynchronizationScope SynchScope = CrossThread){
+  AtomicCmpXchgInst *CreateAtomicCmpXchg(Value *Ptr, Value *Cmp, Value *New,
+                                         AtomicOrdering Ordering,
+                               SynchronizationScope SynchScope = CrossThread) {
     return Insert(new AtomicCmpXchgInst(Ptr, Cmp, New, Ordering, SynchScope));
   }
-  FenceInst *CreateAtomicRMW(AtomicRMWInst::BinOp Op, Value *Ptr, Value *Val,
-                             AtomicOrdering Ordering,
-                             SynchronizationScope SynchScope = CrossThread) {
+  AtomicRMWInst *CreateAtomicRMW(AtomicRMWInst::BinOp Op, Value *Ptr, Value *Val,
+                                 AtomicOrdering Ordering,
+                               SynchronizationScope SynchScope = CrossThread) {
     return Insert(new AtomicRMWInst(Op, Ptr, Val, Ordering, SynchScope));
   }
   Value *CreateGEP(Value *Ptr, ArrayRef<Value *> IdxList,