1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

yaml::Input::mapTag(): Don't use StringRef to hold return type of std::string.

llvm-svn: 194681
This commit is contained in:
NAKAMURA Takumi 2013-11-14 07:08:56 +00:00
parent 72933c4a24
commit 92bb908368

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;