Skip to content

Commit f5066d0

Browse files
author
marcrasi
authored
---
yaml --- r: 293877 b: refs/heads/tensorflow c: 400db9d h: refs/heads/master i: 293875: 5a0d15e
1 parent 57d83ef commit f5066d0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2018-04-25-a: 22f738a831d43aff2b9c9773bcb65
816816
refs/tags/swift-DEVELOPMENT-SNAPSHOT-2018-05-08-a: 7d98cc16689baba5c8a3b90a9329bdcc1a12b4e9
817817
refs/heads/cherr42: a566ad54b073c2c56ac0a705d0a5bed9743135a5
818818
"refs/heads/codable_test_comment_fix": fc8f6824f7f347e1e8db55bff62db385c5728b5a
819-
refs/heads/tensorflow: 1fe5ca1225077178f5c44b332a813ce1647ffd30
819+
refs/heads/tensorflow: 400db9de5ad614bfb819e02a8a4954e5951bce5c
820820
refs/tags/swift-4.1-DEVELOPMENT-SNAPSHOT-2018-05-11-a: 8126fd7a652e2f70ad6d76505239e34fb2ef3e1a
821821
refs/tags/swift-4.1-DEVELOPMENT-SNAPSHOT-2018-05-12-a: b3fd3dd84df6717f2e2e9df58c6d7e99fed57086
822822
refs/tags/swift-4.1-DEVELOPMENT-SNAPSHOT-2018-05-13-a: 71135119579039dc321c5f65d870050fe36efda2

branches/tensorflow/lib/Sema/TypeCheckType.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2258,7 +2258,9 @@ Type TypeResolver::resolveAttributedType(TypeAttributes &attrs,
22582258

22592259
// Resolve the function type directly with these attributes.
22602260
FunctionType::ExtInfo extInfo(rep, /*noescape=*/false,
2261-
fnRepr->throws(), false);
2261+
// SWIFT_ENABLE_TENSORFLOW
2262+
fnRepr->throws(),
2263+
attrs.has(TAK_autodiff) || attrs.has(TAK_differentiable));
22622264

22632265
ty = resolveASTFunctionType(fnRepr, options, extInfo);
22642266
if (!ty || ty->hasError())

0 commit comments

Comments
 (0)