From b3fc435dd66341393da3fc3bcc332b9af7ff3da0 Mon Sep 17 00:00:00 2001 From: lisyarus Date: Thu, 2 Apr 2026 20:19:39 +0300 Subject: [PATCH] Fix initializing variable (lmao) --- libs/ir/source/compiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ir/source/compiler.cpp b/libs/ir/source/compiler.cpp index c367b50..9f2e34b 100644 --- a/libs/ir/source/compiler.cpp +++ b/libs/ir/source/compiler.cpp @@ -613,7 +613,7 @@ namespace pslang::ir { auto before = last(); auto result = apply(*node.initializer); - if (result == before) + if (before == last()) { // Evaluating variable initializer didn't produce any nodes // It must have been just a reference to another variable or smth like that