浏览代码

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