Skip to content

Commit

Permalink
codegen_llvm: fix spelling & grammatical errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ljedrz committed Oct 8, 2018
1 parent 0af7914 commit b168e5f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/librustc_codegen_llvm/abi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ impl<'tcx> FnTypeExt<'tcx> for FnType<'tcx, Ty<'tcx>> {
RustIntrinsic | PlatformIntrinsic |
Rust | RustCall => Conv::C,

// It's the ABI's job to select this, not us.
// It's the ABI's job to select this, not ours.
System => bug!("system abi should be selected elsewhere"),

Stdcall => Conv::X86Stdcall,
Expand Down
4 changes: 2 additions & 2 deletions src/librustc_codegen_llvm/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,8 @@ fn cast_shift_rhs<'ll, F, G>(op: hir::BinOpKind,
if lhs_sz < rhs_sz {
trunc(rhs, lhs_llty)
} else if lhs_sz > rhs_sz {
// FIXME (#1877: If shifting by negative
// values becomes not undefined then this is wrong.
// FIXME (#1877: If in the future shifting by negative
// values is no longer undefined then this is wrong.
zext(rhs, lhs_llty)
} else {
rhs
Expand Down
2 changes: 1 addition & 1 deletion src/librustc_codegen_llvm/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ impl fmt::Debug for Value {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.write_str(&llvm::build_string(|s| unsafe {
llvm::LLVMRustWriteValueToString(self, s);
}).expect("nun-UTF8 value description from LLVM"))
}).expect("non-UTF8 value description from LLVM"))
}
}

0 comments on commit b168e5f

Please sign in to comment.