Skip to content

Commit 44c2294

Browse files
author
marcrasi
authored
fix duplicate request function registration (#197)
Upstream recently added `registerIDERequestFunctions`. We had previously added it as a tensorflow patch. So we're now calling it twice, which is forbidden. This PR removes our call, putting us in sync with upstream. This fixes the following error from swiftlang/swift#28080 (comment): ``` lldb: /home/danielzheng/swift-merge2/swift/lib/AST/Evaluator.cpp:58: void swift::Evaluator::registerRequestFunctions(swift::Zone, ArrayRef<swift::AbstractRequestFunction *>): Assertion `zone.first != zoneID' failed. ```
1 parent bd31d69 commit 44c2294

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lldb/source/Symbol/SwiftASTContext.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3473,9 +3473,6 @@ swift::ASTContext *SwiftASTContext::GetASTContext() {
34733473
registerParseRequestFunctions(m_ast_context_ap->evaluator);
34743474
registerTypeCheckerRequestFunctions(m_ast_context_ap->evaluator);
34753475

3476-
// SWIFT_ENABLE_TENSORFLOW
3477-
registerIDERequestFunctions(m_ast_context_ap->evaluator);
3478-
34793476
GetASTMap().Insert(m_ast_context_ap.get(), this);
34803477

34813478
VALID_OR_RETURN(nullptr);

0 commit comments

Comments
 (0)