summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp b/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp
index ddf21df5d28..663b61f3859 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp
@@ -162,9 +162,9 @@ fs_copy_prop_dataflow::setup_kills()
void
fs_copy_prop_dataflow::run()
{
- bool cont = true;
+ bool cont;
- while (cont) {
+ do {
cont = false;
for (int b = 0; b < cfg->num_blocks; b++) {
@@ -194,7 +194,7 @@ fs_copy_prop_dataflow::run()
}
}
}
- }
+ } while (cont);
}
bool