Bläddra i källkod

HPCC-9578 ASSERT code is poor

Avoid executing the code for the ASSERT message unless the condition fails.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 8 år sedan
förälder
incheckning
ba59e7e49a
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. 1 0
      ecl/hqlcpp/hqlttcpp.cpp

+ 1 - 0
ecl/hqlcpp/hqlttcpp.cpp

@@ -7547,6 +7547,7 @@ void ScalarGlobalTransformer::doAnalyseExpr(IHqlExpression * expr)
     case no_null:
     case no_all:
     case no_funcdef:
+    case no_assert:
         return;
     case no_persist_check:
         //No point spotting global within this since it will not create a subquery..