mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Fix a leak that I introduced in r14729: FrontendOptions does not own input
buffers, so undo 'unique_ptr'fication here Swift SVN r14733
This commit is contained in:
@@ -213,8 +213,9 @@ public:
|
||||
FrontendOpts.InputFilenames.push_back(Filename);
|
||||
}
|
||||
|
||||
void addInputBuffer(std::unique_ptr<llvm::MemoryBuffer> Buffer) {
|
||||
FrontendOpts.InputBuffers.push_back(Buffer.release());
|
||||
/// Does not take ownership of \p Buf.
|
||||
void addInputBuffer(llvm::MemoryBuffer *Buf) {
|
||||
FrontendOpts.InputBuffers.push_back(Buf);
|
||||
}
|
||||
|
||||
void clearInputs() {
|
||||
|
||||
Reference in New Issue
Block a user