Skip to content

Commit

Permalink
rustc_codegen_llvm: rename away the last occurrence of insn.
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyb committed May 28, 2019
1 parent 29b7c06 commit 7fa97c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/librustc_codegen_llvm/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -531,9 +531,9 @@ impl BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {

fn volatile_load(&mut self, ptr: &'ll Value) -> &'ll Value {
unsafe {
let insn = llvm::LLVMBuildLoad(self.llbuilder, ptr, noname());
llvm::LLVMSetVolatile(insn, llvm::True);
insn
let load = llvm::LLVMBuildLoad(self.llbuilder, ptr, noname());
llvm::LLVMSetVolatile(load, llvm::True);
load
}
}

Expand Down

0 comments on commit 7fa97c0

Please sign in to comment.