diff options
author | Zichen Lu <mikaovo2000@gmail.com> | 2025-02-05 19:41:11 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-05 12:41:11 +0100 |
commit | a61ca99de219ff358e613822706a7a40941a8229 (patch) | |
tree | 686ed88fcbededfd2521f016ad24c185e265c6ab /llvm/lib/CodeGen/MachinePipeliner.cpp | |
parent | ee25a85ccc34cabb5b7cd667b6f0c3a21eae1d72 (diff) | |
download | llvm-a61ca99de219ff358e613822706a7a40941a8229.zip llvm-a61ca99de219ff358e613822706a7a40941a8229.tar.gz llvm-a61ca99de219ff358e613822706a7a40941a8229.tar.bz2 |
[mlir] fix overflow warning when generating embedded libdevice (#125801)
When building mlir with `-DMLIR_NVVM_EMBED_LIBDEVICE=ON`, there will be
a warning
```
build/tools/mlir/lib/Target/LLVM/libdevice_embedded.c:1: warning: overflow in conversion from ‘int’ to ‘char’ changes value from ‘143’ to ‘-113’ [-Woverflow]
```
which is followed by a large number of characters in stdout.
Fix this to avoid stdout outputting a large number of characters (3e5).
Diffstat (limited to 'llvm/lib/CodeGen/MachinePipeliner.cpp')
0 files changed, 0 insertions, 0 deletions