diff --git a/src/include/IRBuilder.h b/src/include/IRBuilder.h index 8798a2e..088427f 100644 --- a/src/include/IRBuilder.h +++ b/src/include/IRBuilder.h @@ -315,7 +315,7 @@ class IRBuilder { auto fatherArrayValue = dynamic_cast(fatherArray); auto childArray = new AllocaInst(fatherArrayValue->getType(), subDims, block, childArrayName); - auto inst = new GetSubArrayInst(fatherArray, childArray, indices, block, name); + auto inst = new GetSubArrayInst(fatherArray, childArray, indices, block, childArrayName); assert(inst); block->getInstructions().emplace(position, inst); return inst;