yaml::Input::mapTag(): Don't use StringRef to hold return type of std::string.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 14 Nov 2013 07:08:56 +0000 (07:08 +0000)
committerNAKAMURA 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

index 08562fce86004dbdd72560046b5709caed9673e2..f103ed8bcbe073ae87d37ac824175b2eecb1beda 100644 (file)
@@ -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;