aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNick Kledzik <kledzik@apple.com>2013-01-04 19:32:00 +0000
committerNick Kledzik <kledzik@apple.com>2013-01-04 19:32:00 +0000
commit50c30427405142f1b587edee846606184ae6af8e (patch)
treed54ca0e131c2122dfe5a9d6f2eb850229ffd1e91 /lib
parentf53b78f5bf28dff9536687245239f6aa200add86 (diff)
Fix how YAML I/O detects flow sequences.
Update test case to verify flow sequence is written as a flow sequence. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171514 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Support/YAMLTraits.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/YAMLTraits.cpp b/lib/Support/YAMLTraits.cpp
index 8fcef40d24..ef3948dfd3 100644
--- a/lib/Support/YAMLTraits.cpp
+++ b/lib/Support/YAMLTraits.cpp
@@ -411,8 +411,8 @@ void Output::postflightElement(void *) {
}
unsigned Output::beginFlowSequence() {
- this->newLineCheck();
StateStack.push_back(inFlowSeq);
+ this->newLineCheck();
ColumnAtFlowStart = Column;
output("[ ");
NeedFlowSequenceComma = false;