[flang-commits] [flang] [flang] Use std::uintptr_t instead of unsigned long for better cross-platform stability (PR #183913)

Eugene Epshteyn via flang-commits flang-commits at lists.llvm.org
Mon Mar 2 08:52:40 PST 2026


================
@@ -253,31 +253,17 @@ constexpr TypeBuilderFunc getModel<void (*)(int)>() {
 }
 template <>
 constexpr TypeBuilderFunc
-getModel<void *(*)(void *, const void *, unsigned long)>() {
+getModel<void *(*)(void *, const void *, std::uintptr_t)>() {
----------------
eugeneepshteyn wrote:

The issue may be that on some platforms/compilers, `size_t` is its own type, but on some platforms/compilers it's an alias to `unsigned long` or `unsigned long long`.

https://github.com/llvm/llvm-project/pull/183913


More information about the flang-commits mailing list