Skip to content

Commit 677b430

Browse files
committed
typos
1 parent fb38164 commit 677b430

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/rustc_codegen_llvm/src/llvm/ffi.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ extern "C" {
935935
pub fn LLVMConstArray2<'a>(
936936
ElementTy: &'a Type,
937937
ConstantVals: *const &'a Value,
938-
Length: size_t,
938+
Length: u64,
939939
) -> &'a Value;
940940
pub fn LLVMArrayType2(ElementType: &Type, ElementCount: u64) -> &Type;
941941
pub fn LLVMConstStringInContext2(

compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2095,7 +2095,7 @@ extern "C" LLVMValueRef LLVMConstStringInContext2(LLVMContextRef C,
20952095
#if LLVM_VERSION_LT(17, 0)
20962096
extern "C" LLVMValueRef LLVMConstArray2(LLVMTypeRef ElementTy,
20972097
LLVMValueRef *ConstantVals,
2098-
size_t Length) {
2098+
uint64_t Length) {
20992099
ArrayRef<Constant *> V(unwrap<Constant>(ConstantVals, Length), Length);
21002100
return wrap(ConstantArray::get(ArrayType::get(unwrap(ElementTy), Length), V));
21012101
}

0 commit comments

Comments
 (0)