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:
commit
a3d31f4b80
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user