auto merge of #6550 : Aatch/rust/atomic-load, r=thestinger

This closes #6548

The change makes it match the standard Load signature.
This commit is contained in:
bors 2013-05-17 00:55:29 -07:00
commit a3d31f4b80
3 changed files with 3 additions and 2 deletions

View File

@ -1566,6 +1566,7 @@ pub unsafe fn LLVMBuildPtrDiff(B: BuilderRef,
/* Atomic Operations */
pub unsafe fn LLVMBuildAtomicLoad(B: BuilderRef,
PointerVal: ValueRef,
Name: *c_char,
Order: AtomicOrdering)
-> ValueRef;

View File

@ -544,7 +544,7 @@ pub fn AtomicLoad(cx: block, PointerVal: ValueRef, order: AtomicOrdering) -> Val
return llvm::LLVMGetUndef(ccx.int_type);
}
count_insn(cx, "load.atomic");
return llvm::LLVMBuildAtomicLoad(B(cx), PointerVal, order);
return llvm::LLVMBuildAtomicLoad(B(cx), PointerVal, noname(), order);
}
}

View File

@ -553,7 +553,7 @@ extern "C" LLVMValueRef LLVMBuildAtomicLoad(LLVMBuilderRef B,
li->setVolatile(true);
li->setAtomic(order);
li->setAlignment(sizeof(intptr_t));
return wrap(unwrap(B)->Insert(li));
return wrap(unwrap(B)->Insert(li, Name));
}
extern "C" LLVMValueRef LLVMBuildAtomicStore(LLVMBuilderRef B,