regs[VKI_MIPS32_EF_CP0_EPC] = arch->vex.guest_PC;
# undef DO
#elif defined(VGP_amd64_freebsd)
- regs->rflags = LibVEX_GuestAMD64_get_rflags( &((ThreadArchState*)arch)->vex );
+ regs->rflags = LibVEX_GuestAMD64_get_rflags( &arch->vex );
regs->rsp = arch->vex.guest_RSP;
regs->rip = arch->vex.guest_RIP;
regs->rbx = arch->vex.guest_RBX;
/*--- Functions for working with freelists. ---*/
/*------------------------------------------------------------*/
+#if defined(__clang__)
+/* The nicely aligned 'returns' in the function below produce
+ * misleading indentation warnings. Rather than turn the
+ * warning off globally, just turn it off for the block of code. */
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wmisleading-indentation"
+#endif
+
// Nb: Determination of which freelist a block lives on is based on the
// payload size, not block size.
vg_assert(0);
}
+#if defined(__clang__)
+#pragma clang diagnostic pop
+#endif
+
static inline
UInt pszB_to_listNo ( SizeT pszB )
{