<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/60121>60121</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            llvm-omp-kernel-replay.cpp doesn't build in linux i386: `error: reinterpret_cast from 'long long' to 'ptrdiff_t' (aka 'int') is not allowed`
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            openmp,
            build-problem
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          sylvestre
      </td>
    </tr>
</table>

<pre>
    Introduced in:
https://github.com/llvm/llvm-project/commit/94c772dc923a63abc744c011db51cecfe80cf093
```

/opt/sccache//sccache /build/source/build-llvm/./bin/clang++ -DOMPT_SUPPORT=1 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Iprojects/openmp/libomptarget/tools/kernelreplay -I/build/source/openmp/libomptarget/tools/kernelreplay -Iinclude -I/build/source/llvm/include -Iprojects/openmp/runtime/src -I/build/source/openmp/libomptarget/include -fstack-protector-strong -Wformat -Werror=format-security -Wno-unused-command-line-argument -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -ffile-prefix-map=/build/source/build-llvm/tools/clang/stage2-bins=build-llvm/tools/clang/stage2-bins -ffile-prefix-map=/build/source/= -no-canonical-prefixes -Wall -Wcast-qual -Wformat-pedantic -Wimplicit-fallthrough -Wsign-compare -Wno-enum-constexpr-conversion -Wno-extra -Wno-pedantic -std=c++17 -O2 -DNDEBUG -g1  -fno-exceptions -fno-exceptions -std=c++17 -MD -MT projects/openmp/libomptarget/tools/kernelreplay/CMakeFiles/llvm-omp-kernel-replay.dir/llvm-omp-kernel-replay.cpp.o -MF projects/openmp/libomptarget/tools/kernelreplay/CMakeFiles/llvm-omp-kernel-replay.dir/llvm-omp-kernel-replay.cpp.o.d -o projects/openmp/libomptarget/tools/kernelreplay/CMakeFiles/llvm-omp-kernel-replay.dir/llvm-omp-kernel-replay.cpp.o -c /build/source/openmp/libomptarget/tools/kernelreplay/llvm-omp-kernel-replay.cpp
/build/source/openmp/libomptarget/tools/kernelreplay/llvm-omp-kernel-replay.cpp
/build/source/openmp/libomptarget/tools/kernelreplay/llvm-omp-kernel-replay.cpp:88:9: error: reinterpret_cast from 'long long' to 'ptrdiff_t' (aka 'int') is not allowed
 reinterpret_cast<ptrdiff_t>(It.getAsInteger().value()));
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzUVl1v4jwW_jXmxjoocfi84IKSMkIaStVSob1Cxj4J3jp21nZouxf721cmaek702qnc7GjF6GAHx8_5-uxHe69Kg3ijAyvyDDv8SYcrZv5F31CHxz2Dla-zFYmOCsbgZIqQ7I5SXKSzI8h1D6O2JKwZanCsTn0ha0IW2p9ev2B2tl_ogiELYWtKhX_TAdiPGZSTFnGRxk_iPFgIJI0lYdhKlAUOElEkUyz1g8ZJd23HbZPtrR15PJCcHHENohuQAlbHhqlZYRs4wS-AtBF1o-AMjEozU1J2BVhVxTyzfp2u79_uL3d3G1JlqcU8v1y9f16v1ku76-3-6vV9p5k-WgQJ77dPOzvNw93i-s4-j6_-3Z9tr1g-_ttvtgvNjf32_nNdr-eL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