[gcc r12-4477] Clone correct pass in class pass_thread_jumps_full.

Aldy Hernandez aldyh@gcc.gnu.org
Mon Oct 18 12:55:54 GMT 2021


https://gcc.gnu.org/g:dece6ae77223f37494b9ccab45f4bc4154c9fd0b

commit r12-4477-gdece6ae77223f37494b9ccab45f4bc4154c9fd0b
Author: Aldy Hernandez <aldyh@redhat.com>
Date:   Mon Oct 18 13:53:50 2021 +0200

    Clone correct pass in class pass_thread_jumps_full.
    
    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.

Diff:
---
 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
   {


More information about the Gcc-cvs mailing list