Use __typeof__.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14613
This commit is contained in:
Florian Krohm 2014-10-09 16:44:30 +00:00
parent 800a64895b
commit cb8c5e3d1f

View 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. */