Commit 0a0f12ce1f7be81006b08a3c81a636926d283a9b

Zachary Waldowski 2014-01-09T13:50:17

AArch64: Remove duplicitous element_count call. This inhibits an analyzer warning by Clang.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/aarch64/ffi.c b/src/aarch64/ffi.c
index 9db6dca..9dbf277 100644
--- a/src/aarch64/ffi.c
+++ b/src/aarch64/ffi.c
@@ -556,7 +556,6 @@ copy_hfa_to_reg_or_stack (void *memory,
     {
       int i;
       unsigned short type = get_homogeneous_type (ty);
-      unsigned elems = element_count (ty);
       for (i = 0; i < elems; i++)
 	{
 	  void *reg = allocate_to_v (context, state);