diff options
Diffstat (limited to 'llvm/lib/Testing/Support/Annotations.cpp')
-rw-r--r-- | llvm/lib/Testing/Support/Annotations.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Testing/Support/Annotations.cpp b/llvm/lib/Testing/Support/Annotations.cpp index 24607bd..44d3accc 100644 --- a/llvm/lib/Testing/Support/Annotations.cpp +++ b/llvm/lib/Testing/Support/Annotations.cpp @@ -53,7 +53,8 @@ Annotations::Annotations(llvm::StringRef Text) { continue; } if (Text.consume_front("$")) { - Name = Text.take_while(llvm::isAlnum); + Name = + Text.take_while([](char C) { return llvm::isAlnum(C) || C == '_'; }); Text = Text.drop_front(Name->size()); continue; } |