Skip to content

Commit 8f0f9d9

Browse files
committed
last fix after reimplementation?
1 parent c415723 commit 8f0f9d9

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_codegen_llvm/src/back

1 file changed

+1
-1
lines changed

compiler/rustc_codegen_llvm/src/back/write.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,7 @@ unsafe fn add_panic_msg_to_global<'a>(llmod: &'a llvm::Module, llcx: &'a llvm::C
936936
let msg_len = msg.len();
937937

938938
// Create the array type
939-
let i8_array_type = LLVMRustArrayType(LLVMInt8TypeInContext(llcx), msg_len as u64);
939+
let i8_array_type = LLVMArrayType2(LLVMInt8TypeInContext(llcx), msg_len as u64);
940940

941941
// Create the string constant
942942
let string_const_val = LLVMConstStringInContext2(llcx, cmsg.as_ptr() as *const i8, msg_len as usize, 0);

0 commit comments

Comments
 (0)