diff --git a/hpvm/lib/Transforms/DFG2LLVM_X86/DFG2LLVM_X86.cpp b/hpvm/lib/Transforms/DFG2LLVM_X86/DFG2LLVM_X86.cpp
index 667efbba7d4e31b98958e3a6d283750b900505bc..764cfe8a8de6f55113f2435fca4f8a3863bdff4a 100644
--- a/hpvm/lib/Transforms/DFG2LLVM_X86/DFG2LLVM_X86.cpp
+++ b/hpvm/lib/Transforms/DFG2LLVM_X86/DFG2LLVM_X86.cpp
@@ -524,7 +524,7 @@ void CGT_X86::startNodeThread(DFNode* C, std::vector<Value*> Args, DenseMap<DFEd
   // AllocaInst AI points to memory with all the arguments packed
   // Call runtime to create the thread with these arguments
   DEBUG(errs() << "Start Thread for child node: " << C->getFuncPointer()->getName() << "\n");
-  DEBUG(errs() << *llvm_visc_createThread << "\n");
+// DEBUG(errs() << *llvm_visc_createThread << "\n");
   DEBUG(errs() << *graphID->getType() << "\n");
   DEBUG(errs() << *C_Pipeline->getType() << "\n");
   DEBUG(errs() << *Struct->getType() << "\n");
@@ -1668,7 +1668,7 @@ void CGT_X86::codeGen(DFInternalNode* N) {
       if (DeviceAbstraction) {
         // Prepare arguments and function for call to wait for device runtime call
         std::vector<Value *> Args; // TODO: add the device type as argument?
-        Function *RTF =
+        FunctionCallee RTF =
           M.getOrInsertFunction("llvm_visc_deviceAbstraction_waitOnDeviceStatus",
           runtimeModule->getFunction("llvm_visc_deviceAbstraction_waitOnDeviceStatus")->getFunctionType());
         CallInst *RTFInst = CallInst::Create(RTF, Args, "", GenFuncCI);