From 92bb908368dc05b5520e305a2317082b07f82eb3 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. llvm-svn: 194681 --- 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;