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 f523a55 commit bb6564aCopy full SHA for bb6564a
llvm/utils/TableGen/GlobalISel/CodeExpander.cpp
@@ -31,9 +31,8 @@ void CodeExpander::emit(raw_ostream &OS) const {
31
OS << Current.substr(0, Pos);
32
Current = Current.substr(Pos);
33
34
- if (Current.starts_with("\n")) {
+ if (Current.consume_front("\n")) {
35
OS << "\n" << Indent;
36
- Current = Current.drop_front(1);
37
continue;
38
}
39
@@ -43,10 +42,8 @@ void CodeExpander::emit(raw_ostream &OS) const {
43
42
44
45
46
- if (Current.starts_with("\\")) {
47
+ if (Current.consume_front("\\"))
48
49
- }
50
51
if (Current.starts_with("${")) {
52
StringRef StartVar = Current;
0 commit comments