Преглед изворни кода

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..