Explorar el Código

small error removed

Nicolas Winkler hace 5 años
padre
commit
79128e17ea
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      libmandel/src/NaiveIRGenerator.cpp

+ 1 - 1
libmandel/src/NaiveIRGenerator.cpp

@@ -54,7 +54,7 @@ struct TVisitor
 
     EvalRes<T>* getNodeData(ir::Node* n) {
         assert(n != nullptr);
-        std::any& x = std::visit([](auto& n) {
+        std::any& x = std::visit([](auto& n) -> std::any& {
             return n.nodeData;
         }, *n);
         if (auto* v = std::any_cast<EvalRes<T>>(&x))