Skip to content

Commit fb9f564

Browse files
committed
[StackPromotion] fix the declaration of swift_buffer[De]AllocateOnStack.
This caused a linker failure on linux for some stdlib unit tests. rdar://problem/23849414
1 parent 2a34a62 commit fb9f564

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/SILPasses/Scalar/StackPromotion.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,8 @@ SILFunction *StackPromoter::getBufferAllocFunc(SILFunction *OrigFunc,
251251
"swift_bufferAllocateOnStack",
252252
OrigFunc->getLinkage(),
253253
OrigFunc->getLoweredFunctionType(),
254-
OrigFunc->isBare(), IsNotTransparent, IsNotFragile);
254+
OrigFunc->isBare(), IsNotTransparent,
255+
OrigFunc->isFragile());
255256
}
256257
return BufferAllocFunc;
257258
}
@@ -279,7 +280,7 @@ SILFunction *StackPromoter::getBufferDeallocFunc(SILFunction *OrigFunc,
279280
"swift_bufferDeallocateFromStack",
280281
OrigFunc->getLinkage(),
281282
FunTy,
282-
OrigFunc->isBare(), IsNotTransparent, IsNotFragile);
283+
OrigFunc->isBare(), IsNotTransparent, OrigFunc->isFragile());
283284
}
284285
return BufferDeallocFunc;
285286
}

0 commit comments

Comments
 (0)