From 12147630c910e153f082fefb04872bdcc766cdba Mon Sep 17 00:00:00 2001 From: akashk4 <akashk4@illinois.edu> Date: Wed, 8 Jan 2020 18:49:09 -0600 Subject: [PATCH] Fixing the alloca instruction allocation --- hpvm/lib/Transforms/GenVISC/GenVISC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hpvm/lib/Transforms/GenVISC/GenVISC.cpp b/hpvm/lib/Transforms/GenVISC/GenVISC.cpp index cae0b3a2dc..70a8671e76 100644 --- a/hpvm/lib/Transforms/GenVISC/GenVISC.cpp +++ b/hpvm/lib/Transforms/GenVISC/GenVISC.cpp @@ -1491,7 +1491,7 @@ void GenVISC::genHost(CallInst* CI, Function* KernelF, unsigned levels, unsigned switchToTimer(visc_TimerID_ARG_PACK, CI); // Insert alloca inst for this argument struct type - AllocaInst* AI = new AllocaInst(ArgStructTy, "in.addr", CI); + AllocaInst* AI = new AllocaInst(ArgStructTy, 0, "in.addr", CI); // Marshall all input arguments and dimension arguments into argument struct // type -- GitLab