[flang-commits] [flang] d75ab7d - [fir] Remove getModel<Fortran::ISO::CFI_dim_t> in DescriptorModel.h
    Valentin Clement via flang-commits 
    flang-commits at lists.llvm.org
       
    Fri Nov  5 12:50:27 PDT 2021
    
    
  
Author: Valentin Clement
Date: 2021-11-05T20:49:17+01:00
New Revision: d75ab7d548c020f37ed3391a0002b206336fe46e
URL: https://github.com/llvm/llvm-project/commit/d75ab7d548c020f37ed3391a0002b206336fe46e
DIFF: https://github.com/llvm/llvm-project/commit/d75ab7d548c020f37ed3391a0002b206336fe46e.diff
LOG: [fir] Remove getModel<Fortran::ISO::CFI_dim_t> in DescriptorModel.h
A windows buildbot complains about previous definiton after D112961.
Remove the extra definition until we can figure out if really needed.
Added: 
    
Modified: 
    flang/lib/Optimizer/CodeGen/DescriptorModel.h
Removed: 
    
################################################################################
diff  --git a/flang/lib/Optimizer/CodeGen/DescriptorModel.h b/flang/lib/Optimizer/CodeGen/DescriptorModel.h
index 6c357ab85e8f..33102759b61b 100644
--- a/flang/lib/Optimizer/CodeGen/DescriptorModel.h
+++ b/flang/lib/Optimizer/CodeGen/DescriptorModel.h
@@ -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);
        
    
    
More information about the flang-commits
mailing list