[polly] Isl ast gen compute out (PR #201859)
Eli Friedman via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 9 00:11:20 PDT 2026
================
@@ -315,7 +325,12 @@ astBuildAfterMark(__isl_take isl_ast_node *Node,
assert(isl_ast_node_get_type(Node) == isl_ast_node_mark);
AstBuildUserInfo *BuildInfo = (AstBuildUserInfo *)User;
auto *Id = isl_ast_node_mark_get_id(Node);
- if (strcmp(isl_id_get_name(Id), "SIMD") == 0)
+
+ // since Node being null is not checked
+ // thus name returned could be null or in bad state
+ // this saves the potential err thrown by strcmp
----------------
efriedma-quic wrote:
If the issue is that Id is null, better to check for that explicitly.
The comment seems overly verbose.
https://github.com/llvm/llvm-project/pull/201859
More information about the llvm-commits
mailing list