nv50/ir/opt: Fix for function calls.
[mesa.git] / src / gallium / drivers / nv50 / codegen / nv50_ir_ra.cpp
index 43c29d5926a89f21095af090bbf20ae837f39a27..a91a088353e732e5565977735ccea67e1406387a 100644 (file)
@@ -724,9 +724,9 @@ RegAlloc::linearScan()
 bool
 RegAlloc::exec()
 {
-   for (ArrayList::Iterator fi = prog->allFuncs.iterator();
-        !fi.end(); fi.next()) {
-      func = reinterpret_cast<Function *>(fi.get());
+   for (IteratorRef it = prog->calls.iteratorDFS(false);
+        !it->end(); it->next()) {
+      func = Function::get(reinterpret_cast<Graph::Node *>(it->get()));
       if (!execFunc())
          return false;
    }