[flang-commits] [flang] c54a013 - partial revert on RTBuilder.h to avoid warnings.

Eric Schweitz via flang-commits flang-commits at lists.llvm.org
Wed Jul 8 08:47:45 PDT 2020


Author: Eric Schweitz
Date: 2020-07-08T08:47:13-07:00
New Revision: c54a013e5a8206645e2611974ff83d19d74accbe

URL: https://github.com/llvm/llvm-project/commit/c54a013e5a8206645e2611974ff83d19d74accbe
DIFF: https://github.com/llvm/llvm-project/commit/c54a013e5a8206645e2611974ff83d19d74accbe.diff

LOG: partial revert on RTBuilder.h to avoid warnings.

Added: 
    

Modified: 
    flang/lib/Lower/RTBuilder.h

Removed: 
    


################################################################################
diff  --git a/flang/lib/Lower/RTBuilder.h b/flang/lib/Lower/RTBuilder.h
index 9082e85d6fd8..2f66fa8efac0 100644
--- a/flang/lib/Lower/RTBuilder.h
+++ b/flang/lib/Lower/RTBuilder.h
@@ -157,19 +157,6 @@ constexpr TypeBuilderFunc getModel<bool &>() {
   };
 }
 
-template <>
-constexpr TypeBuilderFunc getModel<float _Complex>() {
-  return [](mlir::MLIRContext *context) -> mlir::Type {
-    return fir::CplxType::get(context, sizeof(float));
-  };
-}
-template <>
-constexpr TypeBuilderFunc getModel<double _Complex>() {
-  return [](mlir::MLIRContext *context) -> mlir::Type {
-    return fir::CplxType::get(context, sizeof(double));
-  };
-}
-
 template <>
 constexpr TypeBuilderFunc getModel<const Fortran::runtime::Descriptor &>() {
   return [](mlir::MLIRContext *context) -> mlir::Type {


        


More information about the flang-commits mailing list