[COMMITTED] Clone correct pass in class pass_thread_jumps_full.

Message ID 20211018125536.408641-1-aldyh@redhat.com
State Committed
Commit dece6ae77223f37494b9ccab45f4bc4154c9fd0b
Headers
Series [COMMITTED] Clone correct pass in class pass_thread_jumps_full. |

Commit Message

Aldy Hernandez Oct. 18, 2021, 12:55 p.m. UTC
  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(-)
  

Patch

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
   {