mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge remote-tracking branch 'origin/master' into master-next
This commit is contained in:
@@ -1028,7 +1028,7 @@ static ValueDecl *getCheckedTruncOperation(ASTContext &Context,
|
||||
return nullptr;
|
||||
|
||||
Type OverflowBitTy = BuiltinIntegerType::get(1, Context);
|
||||
TupleTypeElt ResultElts[] = { OutTy, OverflowBitTy };
|
||||
TupleTypeElt ResultElts[] = { Type(OutTy), OverflowBitTy };
|
||||
Type ResultTy = TupleType::get(ResultElts, Context);
|
||||
return getBuiltinFunction(Id, { InTy }, ResultTy);
|
||||
}
|
||||
@@ -1036,7 +1036,7 @@ static ValueDecl *getCheckedTruncOperation(ASTContext &Context,
|
||||
static ValueDecl *getCheckedConversionOperation(ASTContext &Context,
|
||||
Identifier Id,
|
||||
Type Ty) {
|
||||
auto BuiltinTy = Ty->getAs<BuiltinIntegerType>();
|
||||
Type BuiltinTy = Ty->getAs<BuiltinIntegerType>();
|
||||
if (!BuiltinTy)
|
||||
return nullptr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user