mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 23:31:37 +00:00
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:
parent
163568698c
commit
2b8d813851
@ -83,7 +83,7 @@ void Input::nextDocument() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool Input::mapTag(StringRef Tag, bool Default) {
|
bool Input::mapTag(StringRef Tag, bool Default) {
|
||||||
StringRef foundTag = CurrentNode->_node->getVerbatimTag();
|
std::string foundTag = CurrentNode->_node->getVerbatimTag();
|
||||||
if (foundTag.empty()) {
|
if (foundTag.empty()) {
|
||||||
// If no tag found and 'Tag' is the default, say it was found.
|
// If no tag found and 'Tag' is the default, say it was found.
|
||||||
return Default;
|
return Default;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user