| 665 | } |
| 666 | |
| 667 | bool LLVMUtil::isStackAllocExtCallViaRet(const Instruction *inst) |
| 668 | { |
| 669 | LLVMModuleSet* pSet = LLVMModuleSet::getLLVMModuleSet(); |
| 670 | bool isPtrTy = inst->getType()->isPointerTy(); |
| 671 | if (const CallBase* call = SVFUtil::dyn_cast<CallBase>(inst)) |
| 672 | { |
| 673 | const Function* fun = call->getCalledFunction(); |
| 674 | return fun && isPtrTy && |
| 675 | pSet->is_alloc_stack_ret(fun); |
| 676 | } |
| 677 | else |
| 678 | return false; |
| 679 | } |
| 680 | |
| 681 | /** |
| 682 | * Check if a given value represents a heap object. |
nothing calls this directly
no test coverage detected