From 9dbc9ee0cc229a58a20c60c5ef1f2be07dd5efd2 Mon Sep 17 00:00:00 2001
From: Akash Kothari <akashk4@tyler.cs.illinois.edu>
Date: Thu, 9 Jan 2020 07:34:44 -0600
Subject: [PATCH] Remove unused argument in genKernel function in GenVISC pass

---
 hpvm/include/GenVISC/GenVISC.h          | 2 +-
 hpvm/lib/Transforms/GenVISC/GenVISC.cpp | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/hpvm/include/GenVISC/GenVISC.h b/hpvm/include/GenVISC/GenVISC.h
index fed7bbcfc1..ef1ca3469c 100644
--- a/hpvm/include/GenVISC/GenVISC.h
+++ b/hpvm/include/GenVISC/GenVISC.h
@@ -45,7 +45,7 @@ public:
   virtual bool runOnModule(Module &M);
 
   void generateTest(CallInst* CI);
-  Function* genKernel(Function* KernelFunction, CallInst* CI, StructType* RetTy);
+  Function* genKernel(Function* KernelFunction, StructType* RetTy);
   void genHost(CallInst*, Function*, unsigned, unsigned, unsigned, unsigned, StructType*);
 };
 
diff --git a/hpvm/lib/Transforms/GenVISC/GenVISC.cpp b/hpvm/lib/Transforms/GenVISC/GenVISC.cpp
index b46f9da94b..e19f084992 100644
--- a/hpvm/lib/Transforms/GenVISC/GenVISC.cpp
+++ b/hpvm/lib/Transforms/GenVISC/GenVISC.cpp
@@ -1388,7 +1388,7 @@ void GenVISC::generateTest(CallInst* CI) {
   // kernel function
   StructType* RetTy = StructType::create(Ctx, None, "rtype");
 
-  Function* KernelF = genKernel(cast<Function>(CI->getArgOperand(0)->stripPointerCasts()), CI, RetTy);
+  Function* KernelF = genKernel(cast<Function>(CI->getArgOperand(0)->stripPointerCasts()), RetTy);
   genHost(CI, KernelF, levels, numDims, numArgs, numOutputs, RetTy);
 }
 
@@ -1398,7 +1398,7 @@ void GenVISC::generateTest(CallInst* CI) {
 // changing the function signature by adding any extra arguments required.
 // Changing the return type. Changing all the OpenCL query intrinsics with the
 // visc intrinsics.
-Function* GenVISC::genKernel(Function* KernelF, CallInst* CI, StructType* RetTy) {
+Function* GenVISC::genKernel(Function* KernelF, StructType* RetTy) {
   // Make changes to kernel here
   DEBUG(errs() << "Modifying Node Function: " << KernelF->getName() << "\n");
 
-- 
GitLab