diff --git a/hercules_cg/src/cpu.rs b/hercules_cg/src/cpu.rs
index dd62905df8d044bbca04917787dae25d26d3dc72..c2490626e3b14055a8fdcf96fb3c3133c5b077db 100644
--- a/hercules_cg/src/cpu.rs
+++ b/hercules_cg/src/cpu.rs
@@ -280,7 +280,7 @@ impl<'a> PartitionContext<'a> {
                             &self.function.llvm_types[collection_ty_ids[idx].idx()];
                         write!(
                             bb.data,
-                            "  %index{}.{}.stride.ptrhack = getelementptr {}, ptr null, i64 1\n  %index{}.{}.stride = ptrtoint ptr %index{}.{}.stride.ptrhack to i64\n  %index{}.{}.offset.ptrhack = getelementptr {}, ptr null, i64 0, i64 {}\n  %index{}.{}.offset = ptrtoint ptr %index{}.{}.offset.ptrhack to i64\n",
+                            "  %index{}.{}.stride.ptrhack = getelementptr {}, ptr null, i64 1\n  %index{}.{}.stride = ptrtoint ptr %index{}.{}.stride.ptrhack to i64\n  %index{}.{}.offset.ptrhack = getelementptr {}, ptr null, i64 0, i32 {}\n  %index{}.{}.offset = ptrtoint ptr %index{}.{}.offset.ptrhack to i64\n",
                             id.idx(), idx,
                             product_llvm_ty,
                             id.idx(), idx,