Fix AtomicLoad builder code
This commit is contained in:
parent
17970a9111
commit
a289dcd187
3 changed files with 3 additions and 2 deletions
|
@ -1566,6 +1566,7 @@ pub mod llvm {
|
|||
/* 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…
Add table
Reference in a new issue