diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-11-14 07:08:56 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-11-14 07:08:56 +0000 |
commit | 2b8d813851c19596c6591c54721082217f0ab5ef (patch) | |
tree | 1c7f8bfaa96bf349352c315beb97be09090c3892 /lib | |
parent | 163568698c3bf439fe89833842cf9de7331dfacd (diff) | |
download | llvm-2b8d813851c19596c6591c54721082217f0ab5ef.tar.gz llvm-2b8d813851c19596c6591c54721082217f0ab5ef.tar.bz2 llvm-2b8d813851c19596c6591c54721082217f0ab5ef.tar.xz |
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
Diffstat (limited to 'lib')
-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; |