File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,8 @@ namespace pl::ptrn {
5656 if (this ->getSection () == id)
5757 return ;
5858
59- this ->m_pointedAt ->setSection (id);
59+ if (this ->m_pointedAt != nullptr )
60+ this ->m_pointedAt ->setSection (id);
6061
6162 Pattern::setSection (id);
6263 }
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ namespace pl::core::ast {
7777
7878 auto pointerEndOffset = evaluator->getBitwiseReadOffset ();
7979
80- {
80+ if (evaluator-> getSectionId () != ptrn::Pattern::InstantiationSectionId) {
8181 i128 pointerAddress = pattern->getValue ().toSigned ();
8282
8383 evaluator->setReadOffset (pointerStartOffset);
@@ -103,7 +103,6 @@ namespace pl::core::ast {
103103 if (this ->m_placementSection != nullptr )
104104 pattern->setSection (evaluator->getSectionId ());
105105
106-
107106 if (this ->m_placementOffset != nullptr && !evaluator->isGlobalScope ()) {
108107 evaluator->setBitwiseReadOffset (startOffset);
109108 } else {
You can’t perform that action at this time.
0 commit comments