From 57350ddee162942f3a9d413edb5fbea24650ba4a Mon Sep 17 00:00:00 2001 From: SaeHie Park Date: Wed, 22 Jan 2025 15:11:36 +0900 Subject: [PATCH] [locop] Fix for static analysis This will fix for static analysis to check nullptr. Signed-off-by: SaeHie Park --- compiler/locop/src/CanonicalNodeSummaryBuilder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/locop/src/CanonicalNodeSummaryBuilder.cpp b/compiler/locop/src/CanonicalNodeSummaryBuilder.cpp index 75dd39f369b..a40a956c41e 100644 --- a/compiler/locop/src/CanonicalNodeSummaryBuilder.cpp +++ b/compiler/locop/src/CanonicalNodeSummaryBuilder.cpp @@ -67,7 +67,7 @@ namespace */ std::string opname(const loco::Node *node) { - if (node->dialect() == loco::CanonicalDialect::get()) + if (node && node->dialect() == loco::CanonicalDialect::get()) { auto canonical_node = loco::must_cast(node);