Nicolas Winkler hace 5 años
padre
commit
9e642038e2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;