diff options
-rw-r--r-- | lib/Support/YAMLTraits.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/YAMLTraits.cpp b/lib/Support/YAMLTraits.cpp index 08562fce86..f103ed8bcb 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; |