We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d061314 commit 7908b49Copy full SHA for 7908b49
1 file changed
lib/source/pl/core/ast/ast_node_pointer_variable_decl.cpp
@@ -91,9 +91,11 @@ namespace pl::core::ast {
91
92
std::vector<std::shared_ptr<ptrn::Pattern>> pointedAtPatterns;
93
ON_SCOPE_EXIT {
94
- auto &pointedAtPattern = pointedAtPatterns.front();
+ if (!pointedAtPatterns.empty()) {
95
+ auto &pointedAtPattern = pointedAtPatterns.front();
96
+ pattern->setPointedAtPattern(std::move(pointedAtPattern));
97
+ }
98
- pattern->setPointedAtPattern(std::move(pointedAtPattern));
99
pattern->setSection(evaluator->getSectionId());
100
};
101
0 commit comments