The pass_thread_jumps_full pass was cloning the wrong pass.

Committed as obvious.

gcc/ChangeLog:

        * tree-ssa-threadbackward.c (class pass_thread_jumps_full):
        Clone corresponding pass.
---
 gcc/tree-ssa-threadbackward.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/tree-ssa-threadbackward.c b/gcc/tree-ssa-threadbackward.c
index 62f936a9651..8770be88706 100644
--- a/gcc/tree-ssa-threadbackward.c
+++ b/gcc/tree-ssa-threadbackward.c
@@ -1059,7 +1059,7 @@ public:
   {}
   opt_pass * clone (void) override
   {
-    return new pass_thread_jumps (m_ctxt);
+    return new pass_thread_jumps_full (m_ctxt);
   }
   bool gate (function *) override
   {
-- 
2.31.1

Reply via email to