ロードされた値を外部関数に渡すパスを作成しようとしています。これが私がやっていることです
cpProfFunc = M.getOrInsertFunction("_Z6cpProfiiiiii",Type::getVoidTy(*Context),Type::getInt8tInt8PtrTy(*Context),NULL);
if(isa<LoadInst>(&(*BI)) ) //next in block iterator
std::vector<Value*> a1(1);
LoadInst *CI = dyn_cast<LoadInst>(BI);
a1[0]=dyn_cast<ConstantExpr>(CI->getPointerOperand());
CallInst* newInst = CallInst::Create(cpProf,a1,"");
BB->getInstList().insert((Instruction*)CI, newInst);
これは私にエラーを与えています.私はどこが間違っているのかわかりません.誰か,私を修正してください.