summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/YAMLTraits.cpp
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2013-11-14 07:08:56 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2013-11-14 07:08:56 +0000
commit5b94d281418d777618bc793dda6e8ff5181222e8 (patch)
treec1b29b62eb6288d164b881a3cb6ffdbb1274c99d /llvm/lib/Support/YAMLTraits.cpp
parent9439c528fe5888d70864aa96ba88e0074aea191e (diff)
downloadbcm5719-llvm-5b94d281418d777618bc793dda6e8ff5181222e8.tar.gz
bcm5719-llvm-5b94d281418d777618bc793dda6e8ff5181222e8.zip
yaml::Input::mapTag(): Don't use StringRef to hold return type of std::string.
llvm-svn: 194681
Diffstat (limited to 'llvm/lib/Support/YAMLTraits.cpp')
-rw-r--r--llvm/lib/Support/YAMLTraits.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/YAMLTraits.cpp b/llvm/lib/Support/YAMLTraits.cpp
index 08562fce860..f103ed8bcbe 100644
--- a/llvm/lib/Support/YAMLTraits.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud