diff options
Diffstat (limited to 'src/passes/Print.cpp')
-rw-r--r-- | src/passes/Print.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp index 797ce46b1..962246569 100644 --- a/src/passes/Print.cpp +++ b/src/passes/Print.cpp @@ -3538,11 +3538,7 @@ printStackInst(StackInst* inst, std::ostream& o, Function* func) { static std::ostream& printStackIR(StackIR* ir, std::ostream& o, Function* func) { size_t indent = func ? 2 : 0; - auto doIndent = [&indent, &o]() { - for (size_t j = 0; j < indent; j++) { - o << ' '; - } - }; + auto doIndent = [&]() { o << std::string(indent, ' '); }; int controlFlowDepth = 0; // Stack to track indices of catches within a try |