[flang-commits] [flang] e05f539 - [flang] Crash less

peter klausler via flang-commits flang-commits at lists.llvm.org
Thu Apr 9 08:15:21 PDT 2020


Author: peter klausler
Date: 2019-07-03T16:00:26-07:00
New Revision: e05f5399177df2ee5e2f4fae8aeb4b74a942a1df

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

LOG: [flang] Crash less

Original-commit: flang-compiler/f18 at e8ac1a697d7682bdcd7c5e1dc75d2445b92333bd
Reviewed-on: https://github.com/flang-compiler/f18/pull/553
Tree-same-pre-rewrite: false

Added: 
    

Modified: 
    flang/lib/evaluate/characteristics.cc

Removed: 
    


################################################################################
diff  --git a/flang/lib/evaluate/characteristics.cc b/flang/lib/evaluate/characteristics.cc
index e2fca61b7b2d..0f9e18751b80 100644
--- a/flang/lib/evaluate/characteristics.cc
+++ b/flang/lib/evaluate/characteristics.cc
@@ -412,6 +412,12 @@ std::optional<Procedure> Procedure::Characterize(
               return std::nullopt;
             }
           },
+          [](const semantics::GenericDetails &) -> std::optional<Procedure> {
+            return std::nullopt;
+          },
+          [](const semantics::GenericBindingDetails &) -> std::optional<Procedure> {
+            return std::nullopt;
+          },
           [](const auto &) -> std::optional<Procedure> { CRASH_NO_CASE; },
       },
       symbol.details());


        


More information about the flang-commits mailing list