[polly] Isl ast gen compute out (PR #201859)
Shikhar Jain via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 13 00:07:58 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
----------------
ShikharJ-Corp wrote:
Ok. I have now just checked Id being null and removed the redundant comment
https://github.com/llvm/llvm-project/pull/201859
More information about the llvm-commits
mailing list