[fir] Remove getModel<Fortran::ISO::CFI_dim_t> in DescriptorModel.h
authorValentin Clement <clementval@gmail.com>
Fri, 5 Nov 2021 19:49:09 +0000 (20:49 +0100)
committerValentin Clement <clementval@gmail.com>
Fri, 5 Nov 2021 19:49:17 +0000 (20:49 +0100)
A windows buildbot complains about previous definiton after D112961.

Remove the extra definition until we can figure out if really needed.

flang/lib/Optimizer/CodeGen/DescriptorModel.h

index 6c357ab..3310275 100644 (file)
@@ -87,13 +87,6 @@ TypeBuilderFunc getModel<Fortran::ISO::CFI_type_t>() {
   };
 }
 template <>
-TypeBuilderFunc getModel<Fortran::ISO::CFI_index_t>() {
-  return [](mlir::MLIRContext *context) -> mlir::Type {
-    return mlir::IntegerType::get(context,
-                                  sizeof(Fortran::ISO::CFI_index_t) * 8);
-  };
-}
-template <>
 TypeBuilderFunc getModel<Fortran::ISO::CFI_dim_t>() {
   return [](mlir::MLIRContext *context) -> mlir::Type {
     auto indexTy = getModel<Fortran::ISO::CFI_index_t>()(context);