Skip to content

Commit e46e7be

Browse files
committed
Merge remote-tracking branch 'origin/master' into master-rebranch
2 parents abe7c8f + 228a394 commit e46e7be

File tree

5 files changed

+5
-17
lines changed

5 files changed

+5
-17
lines changed

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

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

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

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

test/api-digester/compare-dump-interface-vs-binary.swift renamed to 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)