@@ -57,9 +57,6 @@ target triple = "@CFG_TARGET_TRIPLE@"
57
57
%"struct.hash_map<long, rust_task *>::map_entry" = type opaque
58
58
%class.circular_buffer = type { %class.rust_kernel*, i64, i64, i64, i64, i8* }
59
59
60
- @.str = private unnamed_addr constant [42 x i8] c"attempt to cast values of differing sizes\00", align 1
61
- @.str1 = private unnamed_addr constant [33 x i8] c"src/rt/intrinsics/intrinsics.cpp\00", align 1
62
-
63
60
define void @rust_intrinsic_vec_len(i64* nocapture %retptr, i8* nocapture %env, %struct.type_desc* nocapture %ty, %struct.rust_vec** nocapture %vp) nounwind uwtable {
64
61
%1 = load %struct.rust_vec** %vp, align 8, !tbaa !0
65
62
%2 = getelementptr inbounds %struct.rust_vec* %1, i64 0, i32 0
@@ -80,28 +77,13 @@ define void @rust_intrinsic_ptr_offset(i8** nocapture %retptr, i8* nocapture %en
80
77
ret void
81
78
}
82
79
83
- define void @rust_intrinsic_cast(i8* nocapture %retptr, i8* nocapture %env, %struct.type_desc* nocapture %t1, %struct.type_desc* nocapture %t2, i8* nocapture %src) uwtable {
80
+ define void @rust_intrinsic_cast(i8* nocapture %retptr, i8* nocapture %env, %struct.type_desc* nocapture %t1, %struct.type_desc* nocapture %t2, i8* nocapture %src) nounwind uwtable {
84
81
%1 = getelementptr inbounds %struct.type_desc* %t1, i64 0, i32 1
85
82
%2 = load i64* %1, align 8, !tbaa !3
86
- %3 = getelementptr inbounds %struct.type_desc* %t2, i64 0, i32 1
87
- %4 = load i64* %3, align 8, !tbaa !3
88
- %5 = icmp eq i64 %2, %4
89
- br i1 %5, label %7, label %6
90
-
91
- ; <label>:6 ; preds = %0
92
- tail call void @upcall_fail(i8* getelementptr inbounds ([42 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([33 x i8]* @.str1, i64 0, i64 0), i64 46)
93
- br label %8
94
-
95
- ; <label>:7 ; preds = %0
96
83
tail call void @llvm.memmove.p0i8.p0i8.i64(i8* %retptr, i8* %src, i64 %2, i32 1, i1 false)
97
- br label %8
98
-
99
- ; <label>:8 ; preds = %7, %6
100
84
ret void
101
85
}
102
86
103
- declare void @upcall_fail(i8*, i8*, i64)
104
-
105
87
declare void @llvm.memmove.p0i8.p0i8.i64(i8* nocapture, i8* nocapture, i64, i32, i1) nounwind
106
88
107
89
define void @rust_intrinsic_addr_of(i8** nocapture %retptr, i8* nocapture %env, %struct.type_desc* nocapture %ty, i8* %valptr) nounwind uwtable {
0 commit comments