Merge pull request #4896 from FireFox317/fix-arm32-stuff

fix some nullptr dereferences on arm-linux-musleabhif
This commit is contained in:
Andrew Kelley
2020-04-01 15:55:31 -04:00
committed by GitHub
6 changed files with 16 additions and 7 deletions

View File

@@ -714,7 +714,7 @@ static LLVMValueRef get_arithmetic_overflow_fn(CodeGen *g, ZigType *operand_type
};
if (operand_type->id == ZigTypeIdVector) {
sprintf(fn_name, "llvm.%s.with.overflow.v%" PRIu32 "i%" PRIu32, signed_str,
sprintf(fn_name, "llvm.%s.with.overflow.v%" PRIu64 "i%" PRIu32, signed_str,
operand_type->data.vector.len, int_type->data.integral.bit_count);
LLVMTypeRef return_elem_types[] = {