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
This commit is contained in:
NAKAMURA Takumi 2013-11-14 07:08:56 +00:00
parent 163568698c
commit 2b8d813851

View File

@ -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;