[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:55:10 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:
@dragon-archer , could you please find out, how `std::size_t` is defined on your compiler? It's probably defined in C header file as `size_t` (std_def.h?) and then re-exported as `std::size_t` for C++.
https://github.com/llvm/llvm-project/pull/183913
More information about the flang-commits
mailing list