|
From: <sv...@va...> - 2014-10-09 16:44:38
|
Author: florian
Date: Thu Oct 9 17:44:30 2014
New Revision: 14613
Log:
Use __typeof__.
Modified:
trunk/coregrind/m_translate.c
Modified: trunk/coregrind/m_translate.c
==============================================================================
--- trunk/coregrind/m_translate.c (original)
+++ trunk/coregrind/m_translate.c Thu Oct 9 17:44:30 2014
@@ -1629,9 +1629,7 @@
: 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. */
|