Skip to content

Commit 228a394

Browse files
authored
Merge pull request #26908 from gottesmm/pr-fc8e6588b30f2b2c82b8310793d1b14fde50ef0a
2 parents 4af31e6 + 1cc3ed0 commit 228a394

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

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
}

0 commit comments

Comments
 (0)