From 2b8d813851c19596c6591c54721082217f0ab5ef Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Thu, 14 Nov 2013 07:08:56 +0000 Subject: [PATCH] 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 --- lib/Support/YAMLTraits.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.34.1