Skip to content

Commit 75ab43b

Browse files
authored
[mlir][emitc][NFC] Eliminate the extra newline printout during emitc.switch emission (#129257)
Before the output was: ```c++ void emitc_switch_ptrdiff_t() { ptrdiff_t v1 = 1; switch (v1) { ... } return; } ``` After: ```c++ void emitc_switch_ptrdiff_t() { ptrdiff_t v1 = 1; switch (v1) { ... } return; } ```
1 parent 6ca1424 commit 75ab43b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Target/Cpp/TranslateToCpp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ static LogicalResult printOperation(CppEmitter &emitter,
484484
emitc::SwitchOp switchOp) {
485485
raw_indented_ostream &os = emitter.ostream();
486486

487-
os << "\nswitch (";
487+
os << "switch (";
488488
if (failed(emitter.emitOperand(switchOp.getArg())))
489489
return failure();
490490
os << ") {";

0 commit comments

Comments
 (0)