Browse Source

small error removed

Nicolas Winkler 5 năm trước cách đây
mục cha
commit
79128e17ea
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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))