projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1635686
)
yaml::Input::mapTag(): Don't use StringRef to hold return type of std::string.
author
NAKAMURA Takumi
<geek4civic@gmail.com>
Thu, 14 Nov 2013 07:08:56 +0000
(07:08 +0000)
committer
NAKAMURA Takumi
<geek4civic@gmail.com>
Thu, 14 Nov 2013 07:08:56 +0000
(07:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194681
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/YAMLTraits.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/YAMLTraits.cpp
b/lib/Support/YAMLTraits.cpp
index 08562fce86004dbdd72560046b5709caed9673e2..f103ed8bcbe073ae87d37ac824175b2eecb1beda 100644
(file)
--- a/
lib/Support/YAMLTraits.cpp
+++ b/
lib/Support/YAMLTraits.cpp
@@
-83,7
+83,7
@@
void Input::nextDocument() {
}
bool Input::mapTag(StringRef Tag, bool Default) {
-
StringRef
foundTag = CurrentNode->_node->getVerbatimTag();
+
std::string
foundTag = CurrentNode->_node->getVerbatimTag();
if (foundTag.empty()) {
// If no tag found and 'Tag' is the default, say it was found.
return Default;