Ver Fonte

small fix

Nicolas Winkler há 5 anos atrás
pai
commit
9e642038e2
1 ficheiros alterados com 1 adições e 1 exclusões
  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;