mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-12 14:06:36 +00:00
[Support/YAMLParser] Use rtrim on plain scalars.
llvm-svn: 156787
This commit is contained in:
parent
5a53bd3002
commit
d6a42acd4e
@ -1630,9 +1630,7 @@ StringRef ScalarNode::getValue(SmallVectorImpl<char> &Storage) const {
|
||||
return UnquotedValue;
|
||||
}
|
||||
// Plain or block.
|
||||
size_t trimtrail = Value.rfind(' ');
|
||||
return Value.drop_back(
|
||||
trimtrail == StringRef::npos ? 0 : Value.size() - trimtrail);
|
||||
return Value.rtrim(" ");
|
||||
}
|
||||
|
||||
StringRef ScalarNode::unescapeDoubleQuoted( StringRef UnquotedValue
|
||||
|
Loading…
Reference in New Issue
Block a user