Skip to content

Commit 7339cc5

Browse files
committed
Remove the ZExt attribute for the MakeBoxUnique runtime function.
The IR verifier in recent versions of LLVM (used with the master-next branch) complains about a ZExt attribute used with a non-integer type, and it does not make sense to zero-extend the return value of MakeBoxUnique, which is a pair of pointers.
1 parent fa3b0f8 commit 7339cc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/Runtime/RuntimeFunctions.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ FUNCTION(MakeBoxUnique,
6161
DefaultCC,
6262
RETURNS(RefCountedPtrTy, OpaquePtrTy),
6363
ARGS(OpaquePtrTy, TypeMetadataPtrTy, SizeTy),
64-
ATTRS(NoUnwind, ZExt))
64+
ATTRS(NoUnwind))
6565

6666
FUNCTION(DeallocBox, swift_deallocBox, DefaultCC,
6767
RETURNS(VoidTy),

0 commit comments

Comments
 (0)