[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
Sun Mar 1 06:23:49 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:
It seems to me that instead of changing/removing the code, you should *add* a new specialization of `getModel()` for `unsigned long long`.
https://github.com/llvm/llvm-project/pull/183913
More information about the flang-commits
mailing list