[flang] Move null entry at the correct place
authorValentin Clement <clementval@gmail.com>
Tue, 15 Mar 2022 21:52:36 +0000 (22:52 +0100)
committerValentin Clement <clementval@gmail.com>
Tue, 15 Mar 2022 21:56:48 +0000 (22:56 +0100)
This is a fix for failing buildbot
https://lab.llvm.org/buildbot/#/builders/172/builds/9652

flang/lib/Lower/IntrinsicCall.cpp

index efdfe95..b04224e 100644 (file)
@@ -590,8 +590,6 @@ static constexpr IntrinsicHandler handlers[]{
     {"lgt", &I::genCharacterCompare<mlir::arith::CmpIPredicate::sgt>},
     {"lle", &I::genCharacterCompare<mlir::arith::CmpIPredicate::sle>},
     {"llt", &I::genCharacterCompare<mlir::arith::CmpIPredicate::slt>},
-    {"min", &I::genExtremum<Extremum::Min, ExtremumBehavior::MinMaxss>},
-    {"null", &I::genNull, {{{"mold", asInquired}}}, /*isElemental=*/false},
     {"max", &I::genExtremum<Extremum::Max, ExtremumBehavior::MinMaxss>},
     {"maxloc",
      &I::genMaxloc,
@@ -622,6 +620,7 @@ static constexpr IntrinsicHandler handlers[]{
        {"dim", asValue},
        {"mask", asBox, handleDynamicOptional}}},
      /*isElemental=*/false},
+    {"null", &I::genNull, {{{"mold", asInquired}}}, /*isElemental=*/false},
     {"random_init",
      &I::genRandomInit,
      {{{"repeatable", asValue}, {"image_distinct", asValue}}},