]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Use __typeof__.
authorFlorian Krohm <florian@eich-krohm.de>
Thu, 9 Oct 2014 16:44:30 +0000 (16:44 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Thu, 9 Oct 2014 16:44:30 +0000 (16:44 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14613

coregrind/m_translate.c

index 72311bc787cf25228192713ed6d200f3e01d7797..8469e7eafc9ece58a46bfa4a69cc2f6ddb2d0e49 100644 (file)
@@ -1629,9 +1629,7 @@ Bool VG_(translate) ( ThreadId tid,
              : VG_(tdict).tool_instrument;
      IRSB*(*g)(void*,
                IRSB*,const VexGuestLayout*,const VexGuestExtents*,
-               const VexArchInfo*,IRType,IRType)
-       = (IRSB*(*)(void*,IRSB*,const VexGuestLayout*,
-                   const VexGuestExtents*, const VexArchInfo*,IRType,IRType))f;
+               const VexArchInfo*,IRType,IRType) = (__typeof__(g)) f;
      vta.instrument1     = g;
    }
    /* No need for type kludgery here. */