From: NAKAMURA Takumi Date: Thu, 14 Nov 2013 07:08:56 +0000 (+0000) Subject: yaml::Input::mapTag(): Don't use StringRef to hold return type of std::string. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=2b8d813851c19596c6591c54721082217f0ab5ef;p=oota-llvm.git yaml::Input::mapTag(): Don't use StringRef to hold return type of std::string. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194681 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Support/YAMLTraits.cpp b/lib/Support/YAMLTraits.cpp index 08562fce860..f103ed8bcbe 100644 --- 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;