From 576c4c2a87cc6c3aae15308765215f45a0fe0e55 Mon Sep 17 00:00:00 2001 From: Yifan Zhao <yifanz16@illinois.edu> Date: Wed, 20 Jan 2021 20:51:53 -0600 Subject: [PATCH] Fixed null-referenced array in pass --- hpvm/lib/Transforms/DFG2LLVM_WrapperAPI/DFG2LLVM_WrapperAPI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hpvm/lib/Transforms/DFG2LLVM_WrapperAPI/DFG2LLVM_WrapperAPI.cpp b/hpvm/lib/Transforms/DFG2LLVM_WrapperAPI/DFG2LLVM_WrapperAPI.cpp index 83f5e235ee..09d6347b54 100644 --- a/hpvm/lib/Transforms/DFG2LLVM_WrapperAPI/DFG2LLVM_WrapperAPI.cpp +++ b/hpvm/lib/Transforms/DFG2LLVM_WrapperAPI/DFG2LLVM_WrapperAPI.cpp @@ -1327,7 +1327,7 @@ void CGT_WrapperAPI::initRuntimeAPI() { GlobalValue::ExternalLinkage, ConstArray2, ""); Constant *ConfsGEPConst = ConstantExpr::getGetElementPtr( GV2->getType()->getPointerElementType(), GV2, GEPIndices); - ArrayRef<Value *> RTCInitArgs = {ConfsGEPConst, QRangesGEPConst}; + Value *RTCInitArgs[] = {ConfsGEPConst, QRangesGEPConst}; CallInst::Create(llvm_hpvm_initializeRuntimeController, RTCInitArgs, "", InitCall); -- GitLab