Skip to content

Commit b45f513

Browse files
committed
---
yaml --- r: 345549 b: refs/heads/master c: d19a176 h: refs/heads/master i: 345547: 6ec6cbf
1 parent 43ccc04 commit b45f513

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 16cda77cf5707226d6e530606f2a012f629445b6
2+
refs/heads/master: d19a17603a6a89185ad59c18a61023f737a6a9ea
33
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea

trunk/test/swift-format/main.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// REQUIRES: rdar39260564
2-
31
// RUN: %swift-format %s >%t.response
42
// RUN: diff -u %s.response %t.response
53
// RUN: %swift-format -indent-width 2 %s >%t.response

trunk/tools/driver/swift_format_main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ class SwiftFormatInvocation {
211211
Formatted = "";
212212

213213
Output.replace(Offset, Length, Formatted);
214-
Doc.updateCode(llvm::MemoryBuffer::getMemBuffer(Output));
214+
Doc.updateCode(llvm::MemoryBuffer::getMemBufferCopy(Output));
215215
}
216216
if (Filename == "-" || (!InPlace && OutputFilename == "-")) {
217217
llvm::outs() << Output;

0 commit comments

Comments
 (0)