summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/YAMLParser.cpp
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2016-02-16 02:06:01 +0000
committerVedant Kumar <vsk@apple.com>2016-02-16 02:06:01 +0000
commit98372e327b619188166a0645748c7d421e95df35 (patch)
tree93522e1b009fc7c00c5c488f0f5900ad25317a53 /llvm/lib/Support/YAMLParser.cpp
parentf114b40c7310d04b984dd0b0800718f74382d991 (diff)
downloadbcm5719-llvm-98372e327b619188166a0645748c7d421e95df35.tar.gz
bcm5719-llvm-98372e327b619188166a0645748c7d421e95df35.zip
Simplify users of StringRef::{l,r}trim (NFC)
r260925 introduced a version of the *trim methods which is preferable when trimming a single kind of character. Update all users in llvm. llvm-svn: 260926
Diffstat (limited to 'llvm/lib/Support/YAMLParser.cpp')
-rw-r--r--llvm/lib/Support/YAMLParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/YAMLParser.cpp b/llvm/lib/Support/YAMLParser.cpp
index c4384cafff6..620841c2d15 100644
--- a/llvm/lib/Support/YAMLParser.cpp
+++ b/llvm/lib/Support/YAMLParser.cpp
@@ -1911,7 +1911,7 @@ StringRef ScalarNode::getValue(SmallVectorImpl<char> &Storage) const {
return UnquotedValue;
}
// Plain or block.
- return Value.rtrim(" ");
+ return Value.rtrim(' ');
}
StringRef ScalarNode::unescapeDoubleQuoted( StringRef UnquotedValue
OpenPOWER on IntegriCloud