Skip to content

Commit 74d94ee

Browse files
committed
Temporarily disable assertion.
(cherry picked from commit fef3578)
1 parent a52f900 commit 74d94ee

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/SILGen/SILGenFunction.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,10 @@ SILGenFunction::SILGenFunction(SILGenModule &SGM, SILFunction &F,
7979
llvm::dbgs() << "+ " << value->getBaseIdentifier() << "\n";
8080
});
8181

82-
assert((VarDeclScopeMap.count(value) == 0 ||
83-
VarDeclScopeMap[value] == ASTScope) &&
84-
"VarDecl appears twice");
82+
// FIXME: ASTs coming out of the autodiff transformation trigger this.
83+
// assert((VarDeclScopeMap.count(value) == 0 ||
84+
// VarDeclScopeMap[value] == ASTScope) &&
85+
// "VarDecl appears twice");
8586
VarDeclScopeMap.insert({value, ASTScope});
8687
}
8788
return false;

0 commit comments

Comments
 (0)