[clang] [flang] [flang] Add UNSIGNED (PR #113504)

Peter Klausler via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 24 14:34:05 PDT 2024


================
@@ -400,6 +400,69 @@ constexpr TypeBuilderFunc getModel<bool &>() {
     return fir::ReferenceType::get(f(context));
   };
 }
+template <>
+constexpr TypeBuilderFunc getModel<unsigned short>() {
+  return getModel<short>();
----------------
klausler wrote:

The existing code does not distinguish `unsigned int` from `signed int`, so I followed that precedent for other sizes of `unsigned` types.  Should the patch be changed to mark the signature for `unsigned int` as being unsigned, along with the other sizes, or just the other sizes?

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


More information about the cfe-commits mailing list