Nicolas Winkler 5 lat temu
rodzic
commit
9e642038e2
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      libmandel/src/IterationIR.cpp

+ 1 - 1
libmandel/src/IterationIR.cpp

@@ -416,7 +416,7 @@ struct ConstantPropagator
 
     bool hasBeenVisited(Node* n) {
         return std::visit([] (auto& x) {
-            if (auto* b = std::any_cast<bool>(x.nodeData))
+            if (auto* b = std::any_cast<bool>(&x.nodeData))
                 return *b;
             else
                 return false;