Skip to content

Commit 6343b4e

Browse files
committed
[mlir] Apply ClangTidy performance finding
- Use '\n' instead of std::endl; https://clang.llvm.org/extra/clang-tidy/checks/performance/avoid-endl.html
1 parent c15e583 commit 6343b4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/include/mlir/ExecutionEngine/RunnerUtils.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,14 +217,14 @@ void printMemRefShape(UnrankedMemRefType<T> &m) {
217217
template <typename T>
218218
void printMemRef(const DynamicMemRefType<T> &m) {
219219
printMemRefMetaData(std::cout, m);
220-
std::cout << " data = " << std::endl;
220+
std::cout << " data = \n";
221221
if (m.rank == 0)
222222
std::cout << "[";
223223
MemRefDataPrinter<T>::print(std::cout, m.data, m.rank, m.rank, m.offset,
224224
m.sizes, m.strides);
225225
if (m.rank == 0)
226226
std::cout << "]";
227-
std::cout << std::endl;
227+
std::cout << '\n';
228228
}
229229

230230
template <typename T, int N>

0 commit comments

Comments
 (0)