ΒΆllvm::Type* getMallocAllocatedType(
    const llvm::CallInst* CI,
    const llvm::TargetLibraryInfo* TLI)

Description

getMallocAllocatedType - Returns the Type allocated by malloc call. The Type depends on the number of bitcast uses of the malloc call: 0: PointerType is the malloc calls' return type. 1: PointerType is the bitcast's result type. >1: Unique PointerType cannot be determined, return NULL.

Declared at: llvm/include/llvm/Analysis/MemoryBuiltins.h:140

Parameters

const llvm::CallInst* CI
const llvm::TargetLibraryInfo* TLI