mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-13 20:25:12 +00:00
No need to verify that malloc's return type is i8*.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82561 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -155,7 +155,7 @@ const PointerType* llvm::getMallocType(const CallInst* CI) {
|
||||
if (BCI && CI->hasOneUse())
|
||||
return cast<PointerType>(BCI->getDestTy());
|
||||
|
||||
// Malloc call was not bitcast, so the type is the malloc's return type, i8*.
|
||||
// Malloc call was not bitcast, so type is the malloc function's return type.
|
||||
if (!BCI)
|
||||
return cast<PointerType>(CI->getType());
|
||||
|
||||
|
Reference in New Issue
Block a user