mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
Fix -Asserts warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81580 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4dbd074145
commit
37acc1aac7
@ -516,8 +516,8 @@ static Value *createMalloc(Instruction *InsertBefore, BasicBlock *InsertAtEnd,
|
||||
MCall->setTailCall();
|
||||
|
||||
// Create a cast instruction to convert to the right type...
|
||||
const Type* VoidT = Type::getVoidTy(BB->getContext());
|
||||
assert(MCall->getType() != VoidT && "Malloc has void return type");
|
||||
assert(MCall->getType() != Type::getVoidTy(BB->getContext()) &&
|
||||
"Malloc has void return type");
|
||||
Value *MCast;
|
||||
if (InsertBefore)
|
||||
MCast = new BitCastInst(MCall, AllocPtrType, NameStr, InsertBefore);
|
||||
|
Loading…
Reference in New Issue
Block a user