[PATCH 2/2] Handle EXPR_TYPE in copy_expression

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



With the introduction of __builtin_types_compatible_p, types can now appear as
expressions (underneath an EXPR_COMPARE), so copy_expression needs to handle
EXPR_TYPE; just pass type expressions through without copying, since they
won't change when inlining.

Signed-off-by: Josh Triplett <josh@xxxxxxxxxxxxxxx>
---
 inline.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/inline.c b/inline.c
index 1f0172e..81530d1 100644
--- a/inline.c
+++ b/inline.c
@@ -79,6 +79,7 @@ static struct expression * copy_expressi
 	case EXPR_VALUE:
 	case EXPR_STRING:
 	case EXPR_FVALUE:
+	case EXPR_TYPE:
 		break;
 
 	/* Unops: check if the subexpression is unique */


-
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux