Clone correct pass in class pass_thread_jumps_full.
authorAldy Hernandez <aldyh@redhat.com>
Mon, 18 Oct 2021 11:53:50 +0000 (13:53 +0200)
committerAldy Hernandez <aldyh@redhat.com>
Mon, 18 Oct 2021 12:55:04 +0000 (14:55 +0200)
The pass_thread_jumps_full pass was cloning the wrong pass.

gcc/ChangeLog:

* tree-ssa-threadbackward.c (class pass_thread_jumps_full):
Clone corresponding pass.

gcc/tree-ssa-threadbackward.c

index 62f936a..8770be8 100644 (file)
@@ -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
   {