Skip to content

Commit cc8e5d5

Browse files
committed
---
yaml --- r: 349566 b: refs/heads/master-next c: e46e7be h: refs/heads/master
1 parent 56fe41e commit cc8e5d5

File tree

6 files changed

+6
-18
lines changed

6 files changed

+6
-18
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: 3574c513bbc5578dd9346b4ea9ab5995c5927bb5
3-
refs/heads/master-next: abe7c8f49ba547f5050bd960b69fa360af19ea06
3+
refs/heads/master-next: e46e7be52ebfe6f3c1d1566d9d538413fac0f6d5
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
66
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-b: 66d897bfcf64a82cb9a87f5e663d889189d06d07

branches/master-next/lib/Frontend/ParseableInterfaceModuleLoader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1441,7 +1441,7 @@ std::error_code ParseableInterfaceModuleLoader::findModuleFilesInDirectory(
14411441
CacheDir, PrebuiltCacheDir, ModuleID.second,
14421442
RemarkOnRebuildFromInterface, dependencyTracker,
14431443
llvm::is_contained(PreferInterfaceForModules,
1444-
ModuleName)?
1444+
ModuleName) ?
14451445
ModuleLoadingMode::PreferParseable : LoadMode);
14461446

14471447
// Ask the impl to find us a module that we can load or give us an error

branches/master-next/lib/SILGen/SILGenLValue.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3621,7 +3621,6 @@ SILValue SILGenFunction::emitConversionToSemanticRValue(SILLocation loc,
36213621
case ReferenceOwnership::Name: { \
36223622
/* For static reference storage types, we need to strip the box and */ \
36233623
/* then do an (unsafe) retain. */ \
3624-
auto type = storageType.castTo<Name##StorageType>(); \
36253624
return B.createCopy##Name##Value(loc, src); \
36263625
}
36273626
#include "swift/AST/ReferenceStorage.def"
@@ -3702,7 +3701,6 @@ static SILValue emitLoadOfSemanticRValue(SILGenFunction &SGF,
37023701
#define UNCHECKED_REF_STORAGE(Name, ...) \
37033702
case ReferenceOwnership::Name: { \
37043703
/* For static reference storage types, we need to strip the box. */ \
3705-
auto type = storageType.castTo<Name##StorageType>(); \
37063704
auto value = SGF.B.createLoad(loc, src, LoadOwnershipQualifier::Trivial); \
37073705
return SGF.B.createCopy##Name##Value(loc, value); \
37083706
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// We shouldn't see this. rdar://54797231
2+
cake: Class C4 is now with @objc

branches/master-next/test/api-digester/Outputs/Cake-interface-vs-binary.txt

Lines changed: 0 additions & 12 deletions
This file was deleted.

branches/master-next/test/api-digester/compare-dump-interface-vs-binary.swift renamed to branches/master-next/test/api-digester/compare-dump-binary-vs-interface.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
// RUN: %target-swift-frontend -typecheck -emit-parseable-module-interface-path %t.mod1/cake.swiftinterface %S/Inputs/cake_baseline/cake.swift -I %S/Inputs/APINotesLeft %clang-importer-sdk-nosource -parse-as-library -enable-library-evolution -disable-objc-attr-requires-foundation-module -module-cache-path %t.module-cache
88

99
// Generate .swiftmodule file for module cake
10-
// RUN: %target-swift-frontend -emit-module -o %t.mod1/cake.swiftmodule %S/Inputs/cake_baseline/cake.swift -I %S/Inputs/APINotesLeft %clang-importer-sdk-nosource -parse-as-library -disable-objc-attr-requires-foundation-module -module-cache-path %t.module-cache
10+
// RUN: %target-swift-frontend -emit-module -o %t.mod1/cake.swiftmodule %S/Inputs/cake_baseline/cake.swift -I %S/Inputs/APINotesLeft %clang-importer-sdk-nosource -parse-as-library -disable-objc-attr-requires-foundation-module -module-cache-path %t.module-cache -enable-library-evolution
1111

1212
// Dump Json file for cake ABI via .swiftmodule file
1313
// RUN: %api-digester -dump-sdk -module cake -o - -module-cache-path %t.module-cache %clang-importer-sdk-nosource -I %t.mod1 -I %S/Inputs/APINotesLeft -abi > %t.dump1.json
@@ -18,6 +18,6 @@
1818
// Compare two Json files and we should see some differences.
1919
// RUN: %api-digester -diagnose-sdk -print-module --input-paths %t.dump1.json -input-paths %t.dump2.json -abi -o %t.result
2020

21-
// RUN: %clang -E -P -x c %S/Outputs/Cake-interface-vs-binary.txt -o - | sed '/^\s*$/d' > %t.expected
21+
// RUN: %clang -E -P -x c %S/Outputs/Cake-binary-vs-interface.txt -o - | sed '/^\s*$/d' > %t.expected
2222
// RUN: %clang -E -P -x c %t.result -o - | sed '/^\s*$/d' > %t.result.tmp
2323
// RUN: diff -u %t.expected %t.result.tmp

0 commit comments

Comments
 (0)