From 695282e5d7fde596af56a6a84f920637a62d9cb4 Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Mon, 28 Nov 2016 14:05:19 +0000 Subject: [PATCH] Don't conditionally run some cheap code that becomes a no-ops in the case when we weren't running it. --- ivar.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/ivar.c b/ivar.c index 9006b89..d2670b5 100644 --- a/ivar.c +++ b/ivar.c @@ -69,12 +69,9 @@ PRIVATE void objc_compute_ivar_offsets(Class class) // can't do anything about that for now (as malloc is only // giving us 16-byte aligned memory) long fudge = 16 - (offset % 16); - if (fudge != 0) - { - ivar->offset += fudge; - class->instance_size += fudge; - assert((ivar_start + ivar->offset + sizeof(intptr_t)) % 16 == 0); - } + ivar->offset += fudge; + class->instance_size += fudge; + assert((ivar_start + ivar->offset + sizeof(intptr_t)) % 16 == 0); } ivar->offset += ivar_start; /* If we're using the new ABI then we also set up the faster ivar