YAML: Null terminate block scalar's value.
authorAlex Lorenz <arphaman@gmail.com>
Thu, 21 May 2015 19:45:02 +0000 (19:45 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Thu, 21 May 2015 19:45:02 +0000 (19:45 +0000)
commit802ab073da691f02d1532f7b7393c1795bc88ca6
tree3635b7a2f6e645dbe2a7f87542da06359b36abc5
parent7e452b8b739194da393af412c49238f63b1c23a8
YAML: Null terminate block scalar's value.

The commit null terminates the string value in the `yaml::BlockScalarNode`
class.

This change is motivated by the initial MIR serialization commit (r237708)
that I reverted in r237730 because the LLVM IR source from the block
scalar node wasn't terminated by a null character and thus the buildbots
failed on one testcase sometimes. This change enables me to recommit
the reverted commit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237942 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/YAMLParser.cpp
unittests/Support/YAMLParserTest.cpp