Skip to content

Commit 2e4487c

Browse files
committed
Minor fix.
1 parent 82431d4 commit 2e4487c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/Sema/DerivedConformanceTensorArrayProtocol.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,8 @@ deriveBodyTensorArrayProtocol_init(AbstractFunctionDecl *funcDecl) {
535535
static ValueDecl
536536
*deriveTensorArrayProtocol_init(DerivedConformance &derived) {
537537
auto &C = derived.TC.Context;
538+
auto nominal = derived.Nominal;
539+
auto parentDC = derived.getConformanceContext();
538540

539541
// Obtain the address type.
540542
auto cTensorHandleType = C.getOpaquePointerDecl()->getDeclaredType();
@@ -544,10 +546,6 @@ static ValueDecl
544546
C.getOptionalDecl(), Type(), {baseAddressType});
545547
Type intType = C.getIntDecl()->getDeclaredType();
546548

547-
auto nominal = derived.Nominal;
548-
auto &C = derived.TC.Context;
549-
auto parentDC = derived.getConformanceContext();
550-
551549
auto *param1 = new (C) ParamDecl(
552550
VarDecl::Specifier::Default, SourceLoc(), SourceLoc(),
553551
C.getIdentifier("_owning"), SourceLoc(), C.getIdentifier("tensorHandles"),

0 commit comments

Comments
 (0)