瀏覽代碼

small fix

Nicolas Winkler 5 年之前
父節點
當前提交
9e642038e2
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;