diff --git a/lib/AST/CASTBridging.cpp b/lib/AST/CASTBridging.cpp index e629b4057b0e9..bc88b4f164cc3 100644 --- a/lib/AST/CASTBridging.cpp +++ b/lib/AST/CASTBridging.cpp @@ -31,9 +31,10 @@ struct BridgedDiagnosticImpl { ~BridgedDiagnosticImpl() { inFlight.flush(); - for (auto text : textBlobs) { - free((void *)text.data()); - } + /* + for (auto &text : textBlobs) + BridgedDiagnosticImpl::Allocator.Deallocate(&text); + */ } }; } // namespace