File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -562,9 +562,10 @@ legalizeGetHighLowi64Bytes(Instruction &I,
562
562
}
563
563
}
564
564
565
- static void legalizeLoadStoreOnArrayAllocas (
566
- Instruction &I, SmallVectorImpl<Instruction *> &ToRemove,
567
- DenseMap<Value *, Value *> &) {
565
+ static void
566
+ legalizeLoadStoreOnArrayAllocas (Instruction &I,
567
+ SmallVectorImpl<Instruction *> &ToRemove,
568
+ DenseMap<Value *, Value *> &) {
568
569
569
570
Value *PtrOp;
570
571
[[maybe_unused]] Type *LoadStoreTy;
@@ -585,7 +586,8 @@ static void legalizeLoadStoreOnArrayAllocas(
585
586
return ;
586
587
587
588
Type *Ty = AllocaPtrOp->getAllocatedType ();
588
- if (!isa<ArrayType>(Ty)) return ;
589
+ if (!isa<ArrayType>(Ty))
590
+ return ;
589
591
assert (!isa<ArrayType>(Ty->getArrayElementType ()) &&
590
592
" Expected allocated type of AllocaInst to be a flat ArrayType" );
591
593
You can’t perform that action at this time.
0 commit comments