소스 검색

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) {
     bool hasBeenVisited(Node* n) {
         return std::visit([] (auto& x) {
         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;
                 return *b;
             else
             else
                 return false;
                 return false;