Patchwork [trans-mem] COMMITTED: fix thinko in ipa_tm_scan_irr_function

login
register
mail settings
Submitter Aldy Hernandez
Date Feb. 3, 2011, 5:40 p.m.
Message ID <4D4AE89E.2080705@redhat.com>
Download mbox | patch
Permalink /patch/81691/
State New
Headers show

Comments

Aldy Hernandez - Feb. 3, 2011, 5:40 p.m.
Obvious.

         * trans-mem (ipa_tm_scan_irr_function): Make sure we have bitmap
         before we dump it.

Patch

Index: trans-mem.c
===================================================================
--- trans-mem.c (revision 169796)
+++ trans-mem.c (working copy)
@@ -3838,7 +3838,7 @@  ipa_tm_scan_irr_function (struct cgraph_
        else
         d->irrevocable_blocks_normal = new_irr;

-      if (dump_file)
+      if (dump_file && new_irr)
         {
           const char *dname;
           bitmap_iterator bmi;