Skip to content

Commit 371b820

Browse files
committed
---
yaml --- r: 345131 b: refs/heads/master c: 90c24eb h: refs/heads/master i: 345129: 6c807cd 345127: db6936f
1 parent 79e714e commit 371b820

File tree

4 files changed

+22
-20
lines changed

4 files changed

+22
-20
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: b4816f4aa21cf2b5de15a22485c8d121b801b7cc
2+
refs/heads/master: 90c24ebfe7901e3caca7ead8c72733b9c4bcf74c
33
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea

trunk/CMakeLists.txt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -866,11 +866,13 @@ endfunction()
866866
# package lookup. Otherwise, rely on the paths specified by the user. These
867867
# need to be defined when cross-compiling.
868868
if(NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin")
869-
swift_icu_variables_set("${SWIFT_HOST_VARIANT_SDK_default}"
870-
"${SWIFT_HOST_VARIANT_ARCH_default}"
871-
ICU_CONFIGURED)
872-
if("${SWIFT_PATH_TO_LIBICU_BUILD}" STREQUAL "" AND NOT ${ICU_CONFIGURED})
873-
find_package(ICU REQUIRED COMPONENTS uc i18n)
869+
if(SWIFT_BUILD_STDLIB OR SWIFT_BUILD_SDK_OVERLAY)
870+
swift_icu_variables_set("${SWIFT_HOST_VARIANT_SDK_default}"
871+
"${SWIFT_HOST_VARIANT_ARCH_default}"
872+
ICU_CONFIGURED)
873+
if("${SWIFT_PATH_TO_LIBICU_BUILD}" STREQUAL "" AND NOT ${ICU_CONFIGURED})
874+
find_package(ICU REQUIRED COMPONENTS uc i18n)
875+
endif()
874876
endif()
875877
endif()
876878

trunk/include/swift/Remote/MetadataReader.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -265,12 +265,12 @@ class MetadataReader {
265265
return start;
266266
}
267267

268-
/// Given a pointer to an address, attemp to read the pointed value.
269-
Optional<StoredPointer> readPointedValue(StoredPointer Address) {
270-
StoredPointer PointedVal;
271-
if (!Reader->readInteger(RemoteAddress(Address), &PointedVal))
268+
/// Given a pointer to an address, attemp to read the pointer value.
269+
Optional<StoredPointer> readPointerValue(StoredPointer Address) {
270+
StoredPointer PointerVal;
271+
if (!Reader->readInteger(RemoteAddress(Address), &PointerVal))
272272
return None;
273-
return Optional<StoredPointer>(PointedVal);
273+
return Optional<StoredPointer>(PointerVal);
274274
}
275275

276276
/// Given a pointer to the metadata, attempt to read the value

trunk/lib/RemoteAST/RemoteAST.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,10 +1166,10 @@ class RemoteASTContextConcreteImpl final : public RemoteASTContextImpl {
11661166

11671167
Result<std::pair<Type, RemoteAddress>>
11681168
getDynamicTypeAndAddressClassExistential(RemoteAddress object) {
1169-
auto pointed = Reader.readPointedValue(object.getAddressData());
1170-
if (!pointed)
1169+
auto pointerval = Reader.readPointerValue(object.getAddressData());
1170+
if (!pointerval)
11711171
return getFailure<std::pair<Type, RemoteAddress>>();
1172-
auto result = Reader.readMetadataFromInstance(*pointed);
1172+
auto result = Reader.readMetadataFromInstance(*pointerval);
11731173
if (!result)
11741174
return getFailure<std::pair<Type, RemoteAddress>>();
11751175
auto typeResult = Reader.readTypeFromMetadata(result.getValue());
@@ -1181,11 +1181,11 @@ class RemoteASTContextConcreteImpl final : public RemoteASTContextImpl {
11811181

11821182
Result<std::pair<Type, RemoteAddress>>
11831183
getDynamicTypeAndAddressErrorExistential(RemoteAddress object) {
1184-
auto pointed = Reader.readPointedValue(object.getAddressData());
1185-
if (!pointed)
1184+
auto pointerval = Reader.readPointerValue(object.getAddressData());
1185+
if (!pointerval)
11861186
return getFailure<std::pair<Type, RemoteAddress>>();
11871187
auto result =
1188-
Reader.readMetadataAndValueErrorExistential(RemoteAddress(*pointed));
1188+
Reader.readMetadataAndValueErrorExistential(RemoteAddress(*pointerval));
11891189
if (!result)
11901190
return getFailure<std::pair<Type, RemoteAddress>>();
11911191
RemoteAddress metadataAddress = result->first;
@@ -1222,10 +1222,10 @@ class RemoteASTContextConcreteImpl final : public RemoteASTContextImpl {
12221222
// 1) Loading a pointer from the input address
12231223
// 2) Reading it as metadata and resolving the type
12241224
// 3) Wrapping the resolved type in an existential metatype.
1225-
auto pointed = Reader.readPointedValue(object.getAddressData());
1226-
if (!pointed)
1225+
auto pointerval = Reader.readPointerValue(object.getAddressData());
1226+
if (!pointerval)
12271227
return getFailure<std::pair<Type, RemoteAddress>>();
1228-
auto typeResult = Reader.readTypeFromMetadata(*pointed);
1228+
auto typeResult = Reader.readTypeFromMetadata(*pointerval);
12291229
if (!typeResult)
12301230
return getFailure<std::pair<Type, RemoteAddress>>();
12311231
auto wrappedType = ExistentialMetatypeType::get(typeResult);

0 commit comments

Comments
 (0)