reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
375 LLVMContext &C = CI->getModule()->getContext(); 380 if (CI->doesNotReturn()) { 381 if (auto *F = dyn_cast<Function>(CI->getCalledValue())) 383 CI->removeAttribute(AttributeList::FunctionIndex, Attribute::NoReturn); 387 IRB.SetInsertPoint(CI); 397 Args.push_back(CI->getCalledValue()); 398 Args.append(CI->arg_begin(), CI->arg_end()); 398 Args.append(CI->arg_begin(), CI->arg_end()); 399 CallInst *NewCall = IRB.CreateCall(getInvokeWrapper(CI), Args); 400 NewCall->takeName(CI); 402 NewCall->setDebugLoc(CI->getDebugLoc()); 407 const AttributeList &InvokeAL = CI->getAttributes(); 412 for (unsigned I = 0, E = CI->getNumArgOperands(); I < E; ++I) 434 CI->replaceAllUsesWith(NewCall);