mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
Fix test/Regression/Transforms/LevelRaise/2002-03-21-MissedRaise2.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1941 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
41e8e9deea
commit
8e640f1fc9
@ -57,8 +57,7 @@ static bool AllIndicesZero(const MemAccessInst *MAI) {
|
||||
//
|
||||
static bool MallocConvertableToType(MallocInst *MI, const Type *Ty,
|
||||
ValueTypeCache &CTMap) {
|
||||
if (!MI->isArrayAllocation() || // No array allocation?
|
||||
!isa<PointerType>(Ty)) return false; // Malloc always returns pointers
|
||||
if (!isa<PointerType>(Ty)) return false; // Malloc always returns pointers
|
||||
|
||||
// Deal with the type to allocate, not the pointer type...
|
||||
Ty = cast<PointerType>(Ty)->getElementType();
|
||||
|
Loading…
Reference in New Issue
Block a user