Skip to content

Commit 1583b7e

Browse files
committed
Merge branch 'main' of github.com:swiftwasm/swift into maxd/main-merge
2 parents 64d6417 + d584153 commit 1583b7e

File tree

186 files changed

+24421
-2658
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

186 files changed

+24421
-2658
lines changed

CMakeLists.txt

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,9 @@ cmake_dependent_option(LIBSWIFT_BUILD_MODE "How to build libswift. Possible valu
204204
HOSTTOOLS: libswift is built with a pre-installed toolchain
205205
BOOTSTRAPPING: libswift is built with a 2-stage bootstrapping process
206206
BOOTSTRAPPING-WITH-HOSTLIBS: libswift is built with a 2-stage bootstrapping process,
207-
but the compiler links against the host system swift libs (macOS only)"
207+
but the compiler links against the host system swift libs (macOS only)
208+
CROSSCOMPILE-WITH-HOSTLIBS: libswift is built with a bootstrapping-with-hostlibs compiled
209+
compiler, provided in `SWIFT_NATIVE_SWIFT_TOOLS_PATH`"
208210
OFF "NOT CMAKE_GENERATOR STREQUAL \"Xcode\"" OFF)
209211

210212
# The following only works with the Ninja generator in CMake >= 3.0.
@@ -530,17 +532,8 @@ if(SWIFT_ENABLE_DISPATCH AND NOT CMAKE_SYSTEM_NAME STREQUAL Darwin)
530532
endif()
531533
endif()
532534

533-
set(SWIFT_STDLIB_AVAILABILITY_DEFINITIONS
534-
"SwiftStdlib 5.0:macOS 10.14.4, iOS 12.2, watchOS 5.2, tvOS 12.2"
535-
"SwiftStdlib 5.1:macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0"
536-
"SwiftStdlib 5.2:macOS 10.15.4, iOS 13.4, watchOS 6.2, tvOS 13.4"
537-
"SwiftStdlib 5.3:macOS 11.0, iOS 14.0, watchOS 7.0, tvOS 14.0"
538-
"SwiftStdlib 5.4:macOS 11.3, iOS 14.5, watchOS 7.4, tvOS 14.5"
539-
"SwiftStdlib 5.5:macOS 12.0, iOS 15.0, watchOS 8.0, tvOS 15.0"
540-
"SwiftStdlib 5.6:macOS 9999, iOS 9999, watchOS 9999, tvOS 9999"
541-
"SwiftStdlib 9999:macOS 9999, iOS 9999, watchOS 9999, tvOS 9999" # Unknown future release
542-
CACHE STRING
543-
"Availability macros for stdlib versions")
535+
file(STRINGS "utils/availability-macros.def" SWIFT_STDLIB_AVAILABILITY_DEFINITIONS)
536+
list(FILTER SWIFT_STDLIB_AVAILABILITY_DEFINITIONS EXCLUDE REGEX "^\\s*(#.*)?$")
544537

545538
#
546539
# Include CMake modules
@@ -626,15 +619,19 @@ set(SWIFT_LIBRARY_OUTPUT_INTDIR "${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/lib")
626619
if("${SWIFT_NATIVE_SWIFT_TOOLS_PATH}" STREQUAL "")
627620
set(SWIFT_NATIVE_SWIFT_TOOLS_PATH "${SWIFT_RUNTIME_OUTPUT_INTDIR}")
628621
set(SWIFT_EXEC_FOR_LIBSWIFT "${CMAKE_Swift_COMPILER}")
629-
elseif(LIBSWIFT_BUILD_MODE STREQUAL "BOOTSTRAPPING" OR LIBSWIFT_BUILD_MODE STREQUAL "BOOTSTRAPPING-WITH-HOSTLIBS")
622+
elseif(LIBSWIFT_BUILD_MODE MATCHES "BOOTSTRAPPING.*")
630623
# If cross-compiling we don't have to bootstrap. We can just use the previously
631624
# built native swiftc to build libswift.
632-
message(STATUS "Building libswift with native host tools instead of bootstrapping")
633-
set(LIBSWIFT_BUILD_MODE "HOSTTOOLS")
625+
message(STATUS "Building libswift with previously built tools instead of bootstrapping")
634626
set(SWIFT_EXEC_FOR_LIBSWIFT "${SWIFT_NATIVE_SWIFT_TOOLS_PATH}/swiftc")
627+
if(LIBSWIFT_BUILD_MODE STREQUAL "BOOTSTRAPPING-WITH-HOSTLIBS")
628+
set(LIBSWIFT_BUILD_MODE "CROSSCOMPILE-WITH-HOSTLIBS")
629+
else()
630+
set(LIBSWIFT_BUILD_MODE "HOSTTOOLS")
631+
endif()
635632
endif()
636633

637-
if(LIBSWIFT_BUILD_MODE STREQUAL "HOSTTOOLS" OR LIBSWIFT_BUILD_MODE STREQUAL "BOOTSTRAPPING-WITH-HOSTLIBS")
634+
if(LIBSWIFT_BUILD_MODE MATCHES "HOSTTOOLS|.*-WITH-HOSTLIBS")
638635
if(SWIFT_ENABLE_ARRAY_COW_CHECKS)
639636
message(STATUS "array COW checks disabled when building libswift with host libraries")
640637
set(SWIFT_ENABLE_ARRAY_COW_CHECKS FALSE)

cmake/modules/AddSwift.cmake

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -749,6 +749,13 @@ function(add_libswift name)
749749
set(deployment_version "10.15") # TODO: once #38675 lands, replace this with
750750
# set(deployment_version "${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK}_DEPLOYMENT_VERSION}")
751751
set(sdk_option "-sdk" "${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK}_ARCH_${SWIFT_HOST_VARIANT_ARCH}_PATH}")
752+
if(${LIBSWIFT_BUILD_MODE} STREQUAL "CROSSCOMPILE-WITH-HOSTLIBS")
753+
# Let the cross-compiled compile don't pick up the compiled stdlib by providing
754+
# an (almost) empty resource dir.
755+
# The compiler will instead pick up the stdlib from the SDK.
756+
get_filename_component(swift_exec_bin_dir ${ALS_SWIFT_EXEC} DIRECTORY)
757+
set(sdk_option ${sdk_option} "-resource-dir" "${swift_exec_bin_dir}/../bootstrapping0/lib/swift")
758+
endif()
752759
endif()
753760
get_versioned_target_triple(target ${SWIFT_HOST_VARIANT_SDK}
754761
${SWIFT_HOST_VARIANT_ARCH} "${deployment_version}")
@@ -880,6 +887,7 @@ function(add_swift_host_tool executable)
880887
# Please add each rpath separately below to the list, explaining why you are
881888
# adding it.
882889
set(RPATH_LIST)
890+
set(sdk_dir "${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK}_ARCH_${SWIFT_HOST_VARIANT_ARCH}_PATH}/usr/lib/swift")
883891
884892
# If we found a swift compiler and are going to use swift code in swift
885893
# host side tools but link with clang, add the appropriate -L paths so we
@@ -892,9 +900,24 @@ function(add_swift_host_tool executable)
892900
get_filename_component(TOOLCHAIN_LIB_DIR "${TOOLCHAIN_BIN_DIR}/../lib/swift/macosx" ABSOLUTE)
893901
target_link_directories(${executable} PUBLIC ${TOOLCHAIN_LIB_DIR})
894902
895-
# Add in the SDK directory for the host platform.
896-
target_link_directories(${executable} PRIVATE
897-
${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK}_ARCH_${SWIFT_HOST_VARIANT_ARCH}_PATH}/usr/lib/swift)
903+
# Add the SDK directory for the host platform.
904+
target_link_directories(${executable} PRIVATE "${sdk_dir}")
905+
906+
# Include the abi stable system stdlib in our rpath.
907+
list(APPEND RPATH_LIST "/usr/lib/swift")
908+
909+
elseif(LIBSWIFT_BUILD_MODE STREQUAL "CROSSCOMPILE-WITH-HOSTLIBS")
910+
911+
# Intentinally don't add the lib dir of the cross-compiled compiler, so that
912+
# the stdlib is not picked up from there, but from the SDK.
913+
# This requires to explicitly add all the needed compatibility libraries. We
914+
# can take them from the current build.
915+
set(vsuffix "-${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK}_LIB_SUBDIR}-${SWIFT_HOST_VARIANT_ARCH}")
916+
set(conctarget "swiftCompatibilityConcurrency${vsuffix}")
917+
target_link_libraries(${executable} PUBLIC ${conctarget})
918+
919+
# Add the SDK directory for the host platform.
920+
target_link_directories(${executable} PRIVATE "${sdk_dir}")
898921
899922
# Include the abi stable system stdlib in our rpath.
900923
list(APPEND RPATH_LIST "/usr/lib/swift")
@@ -903,9 +926,8 @@ function(add_swift_host_tool executable)
903926
# Pick up the built libswiftCompatibility<n>.a libraries
904927
_link_built_compatibility_libs(${executable})
905928
906-
# Add in the SDK directory for the host platform.
907-
target_link_directories(${executable} PRIVATE
908-
${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK}_ARCH_${SWIFT_HOST_VARIANT_ARCH}_PATH}/usr/lib/swift)
929+
# Add the SDK directory for the host platform.
930+
target_link_directories(${executable} PRIVATE "${sdk_dir}")
909931
910932
# Include the abi stable system stdlib in our rpath.
911933
list(APPEND RPATH_LIST "/usr/lib/swift")
@@ -951,8 +973,7 @@ function(add_swift_host_tool executable)
951973
# NOTE: We do this /after/ target_link_directorying TOOLCHAIN_LIB_DIR to
952974
# ensure that we first find libraries from the toolchain, rather than from
953975
# the SDK.
954-
target_link_directories(${executable} PRIVATE
955-
${SWIFT_SDK_${SWIFT_HOST_VARIANT_SDK}_ARCH_${SWIFT_HOST_VARIANT_ARCH}_PATH}/usr/lib/swift)
976+
target_link_directories(${executable} PRIVATE "${sdk_dir}")
956977
957978
# We also want to be able to find libraries from the base toolchain
958979
# directory. This is so swiftc can rely on its own host side dylibs that may

cmake/modules/Libdispatch.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ foreach(sdk ${DISPATCH_SDKS})
103103
-DCMAKE_ANDROID_API=${SWIFT_ANDROID_API_LEVEL}
104104
-DBUILD_SHARED_LIBS=YES
105105
-DENABLE_SWIFT=NO
106-
-DENABLE_TESTING=NO
106+
-DBUILD_TESTING=NO
107107
INSTALL_COMMAND
108108
# NOTE(compnerd) provide a custom install command to
109109
# ensure that we strip out the DESTDIR environment
@@ -195,7 +195,7 @@ foreach(sdk ${DISPATCH_SDKS})
195195
-DCMAKE_ANDROID_API=${SWIFT_ANDROID_API_LEVEL}
196196
-DBUILD_SHARED_LIBS=NO
197197
-DENABLE_SWIFT=NO
198-
-DENABLE_TESTING=NO
198+
-DBUILD_TESTING=NO
199199
INSTALL_COMMAND
200200
# NOTE(compnerd) provide a custom install command to
201201
# ensure that we strip out the DESTDIR environment

cmake/modules/SwiftUtils.cmake

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,17 @@ function(get_bootstrapping_swift_lib_dir bs_lib_dir bootstrapping)
112112
endfunction()
113113

114114
function(add_bootstrapping_target bootstrapping)
115-
if(${LIBSWIFT_BUILD_MODE} STREQUAL "BOOTSTRAPPING" OR
116-
${LIBSWIFT_BUILD_MODE} STREQUAL "BOOTSTRAPPING-WITH-HOSTLIBS")
115+
if(${LIBSWIFT_BUILD_MODE} MATCHES "BOOTSTRAPPING.*")
117116

118117
set(target "bootstrapping${bootstrapping}-all")
119118
add_custom_target(${target})
120119

120+
if(${LIBSWIFT_BUILD_MODE} STREQUAL "BOOTSTRAPPING")
121+
set(lib_target "bootstrapping${bootstrapping}-corelib")
122+
add_custom_target(${lib_target})
123+
add_dependencies(${target} ${lib_target})
124+
endif()
125+
121126
if(SWIFT_PATH_TO_LIBICU_BUILD)
122127
# Need to symlink the libicu libraries to be able to run
123128
# the bootstrapping compiler with a custom library path.

include/swift/AST/ActorIsolation.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ class ActorIsolation {
106106
operator Kind() const { return getKind(); }
107107

108108
bool isUnspecified() const { return kind == Unspecified; }
109+
110+
bool isIndependent() const { return kind == Independent; }
109111

110112
NominalTypeDecl *getActor() const {
111113
assert(getKind() == ActorInstance || getKind() == DistributedActorInstance);

include/swift/AST/Attr.def

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ TYPE_ATTR(noDerivative)
5656
TYPE_ATTR(async)
5757
TYPE_ATTR(Sendable)
5858
TYPE_ATTR(unchecked)
59+
TYPE_ATTR(_typeSequence)
5960

6061
// SIL-specific attributes
6162
TYPE_ATTR(block_storage)
@@ -426,7 +427,12 @@ DECL_ATTR(_restatedObjCConformance, RestatedObjCConformance,
426427
NotSerialized |
427428
ABIStableToAdd | ABIStableToRemove | APIStableToAdd | APIStableToRemove,
428429
70)
429-
// NOTE: 71 is unused
430+
DECL_ATTR(_typeSequence, TypeSequence,
431+
OnGenericTypeParam |
432+
UserInaccessible |
433+
NotSerialized |
434+
ABIBreakingToAdd | ABIBreakingToRemove | APIBreakingToAdd | APIBreakingToRemove,
435+
71)
430436
// NOTE: 72 is unused
431437
DECL_ATTR(_optimize, Optimize,
432438
OnAbstractFunction | OnSubscript | OnVar |

include/swift/AST/Attr.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2061,6 +2061,20 @@ class NonSendableAttr : public DeclAttribute {
20612061
}
20622062
};
20632063

2064+
/// The @_typeSequence attribute, which treats a generic param decl as a variadic
2065+
/// sequence of value/type pairs.
2066+
class TypeSequenceAttr : public DeclAttribute {
2067+
TypeSequenceAttr(SourceLoc atLoc, SourceRange Range);
2068+
2069+
public:
2070+
static TypeSequenceAttr *create(ASTContext &Ctx, SourceLoc atLoc,
2071+
SourceRange Range);
2072+
2073+
static bool classof(const DeclAttribute *DA) {
2074+
return DA->getKind() == DAK_TypeSequence;
2075+
}
2076+
};
2077+
20642078
/// Attributes that may be applied to declarations.
20652079
class DeclAttributes {
20662080
/// Linked list of declaration attributes.

include/swift/AST/DiagnosticsParse.def

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -633,6 +633,8 @@ ERROR(sil_keypath_index_operand_type_conflict,none,
633633
ERROR(sil_keypath_no_use_of_operand_in_pattern,none,
634634
"operand %0 is not referenced by any component in the pattern",
635635
(unsigned))
636+
ERROR(sil_movevalue_invalid_optional_attribute,none,
637+
"Optional attribute '[%0]' can not be applied to move_value", (StringRef))
636638

637639
// SIL Basic Blocks
638640
ERROR(expected_sil_block_name,none,

include/swift/AST/DiagnosticsSIL.def

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -168,14 +168,12 @@ ERROR(variable_defer_use_uninit,none,
168168
ERROR(self_closure_use_uninit,none,
169169
"'self' captured by a closure before all members were initialized", ())
170170

171-
/// false == sync; true == global-actor isolated
172-
ERROR(self_use_actor_init,none,
173-
"this use of actor 'self' %select{can only|cannot}0 appear in "
174-
"%select{an async|a global-actor isolated}0 initializer",
175-
(bool))
176-
ERROR(self_disallowed_actor_init,none,
177-
"actor 'self' %select{can only|cannot}0 %1 from "
178-
"%select{an async|a global-actor isolated}0 initializer",
171+
ERROR(self_disallowed_nonisolated_actor_init,none,
172+
"%select{|this use of }0actor 'self' cannot %2 %select{from|in}0 "
173+
"%select{a non-isolated, designated|a global-actor isolated}1 initializer",
174+
(bool, bool, StringRef))
175+
ERROR(self_disallowed_plain_actor_init,none,
176+
"%select{|this use of }0actor 'self' can only %1 %select{from|in}0 an async initializer",
179177
(bool, StringRef))
180178
NOTE(actor_convenience_init,none,
181179
"convenience initializers allow non-isolated use of 'self' once "
@@ -733,5 +731,15 @@ ERROR(sil_moveonlychecker_value_consumed_more_than_once, none,
733731
NOTE(sil_moveonlychecker_consuming_use_here, none,
734732
"consuming use", ())
735733

734+
// move kills copyable values checker diagnostics
735+
ERROR(sil_movekillscopyablevalue_value_consumed_more_than_once, none,
736+
"'%0' used after being moved", (StringRef))
737+
NOTE(sil_movekillscopyablevalue_move_here, none,
738+
"move here", ())
739+
NOTE(sil_movekillscopyablevalue_use_here, none,
740+
"use here", ())
741+
NOTE(sil_movekillscopyablevalue_value_consumed_in_loop, none,
742+
"cyclic move here. move will occur multiple times in the loop", ())
743+
736744
#define UNDEFINE_DIAGNOSTIC_MACROS
737745
#include "DefineDiagnosticMacros.h"

include/swift/AST/DiagnosticsSema.def

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4417,6 +4417,8 @@ ERROR(actor_protocol_illegal_inheritance,none,
44174417
ERROR(distributed_actor_protocol_illegal_inheritance,none,
44184418
"non-distributed actor type %0 cannot conform to the 'DistributedActor' protocol",
44194419
(DeclName))
4420+
ERROR(broken_distributed_actor_requirement,none,
4421+
"DistributedActor protocol is broken: unexpected requirement", ())
44204422

44214423
ERROR(unowned_executor_outside_actor,none,
44224424
"'unownedExecutor' can only be implemented within the main "
@@ -4488,6 +4490,10 @@ NOTE(actor_isolated_sync_func,none,
44884490
"calls to %0 %1 from outside of its actor context are "
44894491
"implicitly asynchronous",
44904492
(DescriptiveDeclKind, DeclName))
4493+
NOTE(actor_isolated_sync_func_value,none,
4494+
"calls function of type %0 from outside of its actor context are "
4495+
"implicitly asynchronous",
4496+
(Type))
44914497
NOTE(note_distributed_actor_isolated_method,none,
44924498
"distributed actor-isolated %0 %1 declared here",
44934499
(DescriptiveDeclKind, DeclName))
@@ -4605,6 +4611,12 @@ ERROR(nonisolated_mutable_storage,none,
46054611
ERROR(nonisolated_local_var,none,
46064612
"'nonisolated' can not be applied to local variables",
46074613
())
4614+
ERROR(nonisolated_actor_sync_init,none,
4615+
"'nonisolated' on an actor's synchronous initializer is invalid",
4616+
())
4617+
ERROR(nonisolated_actor_convenience_init,none,
4618+
"'nonisolated' on an actor's convenience initializer is redundant",
4619+
())
46084620

46094621
ERROR(actor_instance_property_wrapper,none,
46104622
"%0 property in property wrapper type %1 cannot be isolated to "
@@ -5950,6 +5962,13 @@ ERROR(cannot_declare_computed_var_in_result_builder,none,
59505962
"expression shuffles the elements of this tuple; "
59515963
"this behavior is deprecated", ())
59525964

5965+
//------------------------------------------------------------------------------
5966+
// MARK: Implicit conversion diagnostics
5967+
//------------------------------------------------------------------------------
5968+
ERROR(cannot_implicitly_convert_in_optional_context,none,
5969+
"cannot implicitly convert value of type %0 to expected type %1",
5970+
(Type, Type))
5971+
59535972
//------------------------------------------------------------------------------
59545973
// MARK: marker protocol diagnostics
59555974
//------------------------------------------------------------------------------
@@ -6052,5 +6071,13 @@ ERROR(noimplicitcopy_attr_valid_only_on_local_let_params,
60526071
ERROR(noimplicitcopy_attr_invalid_in_generic_context,
60536072
none, "'@_noImplicitCopy' attribute cannot be applied to entities in generic contexts", ())
60546073

6074+
//------------------------------------------------------------------------------
6075+
// MARK: variadics
6076+
//------------------------------------------------------------------------------
6077+
6078+
ERROR(type_sequence_on_non_generic_param, none,
6079+
"'@_typeSequence' must appear on a generic parameter",
6080+
())
6081+
60556082
#define UNDEFINE_DIAGNOSTIC_MACROS
60566083
#include "DefineDiagnosticMacros.h"

include/swift/AST/Identifier.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ class Identifier {
122122
is(">") || is("<=") || is(">=");
123123
}
124124

125+
bool isNilCoalescingOperator() const {
126+
return is("??");
127+
}
128+
125129
/// isOperatorStartCodePoint - Return true if the specified code point is a
126130
/// valid start of an operator.
127131
static bool isOperatorStartCodePoint(uint32_t C) {

include/swift/AST/KnownIdentifiers.def

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ IDENTIFIER(decode)
6565
IDENTIFIER(decodeIfPresent)
6666
IDENTIFIER(Decoder)
6767
IDENTIFIER(decoder)
68+
IDENTIFIER(DefaultActorTransport)
6869
IDENTIFIER_(Differentiation)
6970
IDENTIFIER_WITH_NAME(PatternMatchVar, "$match")
7071
IDENTIFIER(dynamicallyCall)
@@ -141,6 +142,7 @@ IDENTIFIER_WITH_NAME(SwiftObject, "_TtCs12_SwiftObject")
141142
IDENTIFIER(SwiftNativeNSObject)
142143
IDENTIFIER(to)
143144
IDENTIFIER(toRaw)
145+
IDENTIFIER(Transport)
144146
IDENTIFIER(Type)
145147
IDENTIFIER(type)
146148
IDENTIFIER(typeMismatch)

include/swift/AST/NameLookup.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -641,9 +641,7 @@ class AbstractASTScopeDeclConsumer {
641641
/// Look for members of a nominal type or extension scope.
642642
///
643643
/// \return true if the lookup should be stopped at this point.
644-
virtual bool
645-
lookInMembers(DeclContext *const scopeDC,
646-
NominalTypeDecl *const nominal) = 0;
644+
virtual bool lookInMembers(const DeclContext *scopeDC) const = 0;
647645

648646
/// Called for local VarDecls that might not yet be in scope.
649647
///
@@ -680,8 +678,7 @@ class ASTScopeDeclGatherer : public AbstractASTScopeDeclConsumer {
680678
NullablePtr<DeclContext> baseDC = nullptr) override;
681679

682680
/// Eventually this functionality should move into ASTScopeLookup
683-
bool lookInMembers(DeclContext *const,
684-
NominalTypeDecl *const) override {
681+
bool lookInMembers(const DeclContext *) const override {
685682
return false;
686683
}
687684

include/swift/AST/Types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ class alignas(1 << TypeAlignInBits) TypeBase
802802

803803
/// Check if this is a CGFloat type from CoreGraphics framework
804804
/// on macOS or Foundation on Linux.
805-
bool isCGFloatType();
805+
bool isCGFloat();
806806

807807
/// Check if this is either an Array, Set or Dictionary collection type defined
808808
/// at the top level of the Swift module

0 commit comments

Comments
 (0)