(&mut self, _: &'ll Type, ptr: &'ll Value, idx: u64)
| 757 | } |
| 758 | |
| 759 | fn struct_gep(&mut self, _: &'ll Type, ptr: &'ll Value, idx: u64) -> &'ll Value { |
| 760 | trace!("struct gep: {:?}, {:?}", ptr, idx); |
| 761 | assert_eq!(idx as c_uint as u64, idx); |
| 762 | unsafe { llvm::LLVMBuildStructGEP(self.llbuilder, ptr, idx as c_uint, unnamed()) } |
| 763 | } |
| 764 | |
| 765 | /* Casts */ |
| 766 | fn trunc(&mut self, val: &'ll Value, dest_ty: &'ll Type) -> &'ll Value { |