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:
parent
72933c4a24
commit
92bb908368
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user