]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Join two #ifdefs, eliminating one.
authorFlorian Krohm <florian@eich-krohm.de>
Wed, 17 Dec 2014 13:18:51 +0000 (13:18 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Wed, 17 Dec 2014 13:18:51 +0000 (13:18 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14819

coregrind/m_main.c

index 3f1445253926d7b5952c10e367d4c2aa9e9870d3..4e9f696abc323db30ae2c49a672a988f2471014a 100644 (file)
@@ -2666,9 +2666,6 @@ void shutdown_actions_NORETURN( ThreadId tid,
 static void final_tidyup(ThreadId tid)
 {
 #if !defined(VGO_darwin)
-#  if defined(VGP_ppc64be_linux)
-   Addr r2;
-#  endif
    Addr __libc_freeres_wrapper = VG_(client___libc_freeres_wrapper);
 
    vg_assert(VG_(is_running_thread)(tid));
@@ -2679,7 +2676,7 @@ static void final_tidyup(ThreadId tid)
       return;                  /* can't/won't do it */
 
 #  if defined(VGP_ppc64be_linux)
-   r2 = VG_(get_tocptr)( __libc_freeres_wrapper );
+   Addr r2 = VG_(get_tocptr)( __libc_freeres_wrapper );
    if (r2 == 0) {
       VG_(message)(Vg_UserMsg, 
                    "Caught __NR_exit, but can't run __libc_freeres()\n");