We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28f9041 commit a0b459dCopy full SHA for a0b459d
llvm/include/llvm/IR/GlobalValue.h
@@ -564,8 +564,7 @@ class GlobalValue : public Constant {
564
/// arbitrary GlobalValue, this is not the function you're looking for; see
565
/// Mangler.h.
566
static StringRef dropLLVMManglingEscape(StringRef Name) {
567
- if (!Name.empty() && Name[0] == '\1')
568
- return Name.substr(1);
+ Name.consume_front("\1");
569
return Name;
570
}
571
0 commit comments