You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// SR-15566: Differentiable functions with control flow yield an assertion failure: "location is a VarDecl, but SILDebugVariable is empty"
5
+
6
+
import _Differentiation
7
+
8
+
publicstructTest:Differentiable{
9
+
publicvarv1:[[Float]]
10
+
11
+
@differentiable(reverse)
12
+
publicinit(v1:[[Float]]){
13
+
if v1.count !=2{
14
+
fatalError("Mismatched counts")
15
+
}
16
+
self.v1 = v1
17
+
}
18
+
}
19
+
20
+
// Assertion failed: ((!dyn_cast_or_null<VarDecl>(Loc.getAsASTNode<Decl>()) || Var) && "location is a VarDecl, but SILDebugVariable is empty"), function createAllocStack, file SILBuilder.h, line 389.
0 commit comments