Skip to content

Commit 44070e3

Browse files
authored
Merge pull request #4860 from eeckstein/remove-max
2 parents 6132819 + 2558970 commit 44070e3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/IRGen/GenValueWitness.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1522,8 +1522,7 @@ Address TypeInfo::indexArray(IRGenFunction &IGF, Address base,
15221522
Size stride(1);
15231523

15241524
// TODO: Arrays currently lower-bound the stride to 1.
1525-
if (!fixedTI
1526-
|| std::max(Size(1), fixedTI->getFixedStride()) != fixedTI->getFixedSize()) {
1525+
if (!fixedTI || fixedTI->getFixedStride() != fixedTI->getFixedSize()) {
15271526
llvm::Value *byteAddr = IGF.Builder.CreateBitCast(base.getAddress(),
15281527
IGF.IGM.Int8PtrTy);
15291528
llvm::Value *size = getStride(IGF, T);

0 commit comments

Comments
 (0)