Преглед на файлове

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 години
родител
ревизия
ba59e7e49a
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  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..