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 db90d1a commit 398588eCopy full SHA for 398588e
passes/cmds/logcmd.cc
@@ -93,12 +93,15 @@ struct LogPass : public Pass {
93
if (push) { log_push(); return; }
94
if (pop) { log_pop(); return; }
95
96
- for (; argidx < args.size(); argidx++)
97
- text += args[argidx] + ' ';
98
- if (!text.empty()) text.resize(text.size()-1);
99
-
100
- if (text.size() > 1 && text[0] == '"' && text[text.size()-1] == '"')
101
- text = text.substr(1, text.size()-2);
+ text = args[argidx++];
+ if (argidx < args.size()) {
+ for (; argidx < args.size(); argidx++) {
+ text += ' ' + args[argidx];
+ }
+ } else {
102
+ if (text.size() > 1 && text[0] == '"' && text[text.size()-1] == '"')
103
+ text = text.substr(1, text.size()-2);
104
105
106
const char *fmtline = newline ? "%s\n" : "%s";
107
0 commit comments