(&mut self, val: &'ll Value, ptr: &'ll Value)
| 1183 | } |
| 1184 | |
| 1185 | fn check_store(&mut self, val: &'ll Value, ptr: &'ll Value) -> &'ll Value { |
| 1186 | let dest_ptr_ty = self.cx.val_ty(ptr); |
| 1187 | let stored_ty = self.cx.val_ty(val); |
| 1188 | let stored_ptr_ty = self.cx.type_ptr_to(stored_ty); |
| 1189 | |
| 1190 | assert_eq!(self.cx.type_kind(dest_ptr_ty), TypeKind::Pointer); |
| 1191 | |
| 1192 | if dest_ptr_ty == stored_ptr_ty { |
| 1193 | ptr |
| 1194 | } else { |
| 1195 | self.bitcast(ptr, stored_ptr_ty) |
| 1196 | } |
| 1197 | } |
| 1198 | |
| 1199 | fn check_call<'b>( |
| 1200 | &mut self, |
no test coverage detected