[PATCH] constexpr: mark __builtin_choose_expr() as constexpr

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

 



__builtin_choose_expr() always returns a constant and is
 GCC extension, so it can safely be marked as such.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx>
---
 builtin.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/builtin.c b/builtin.c
index 52285a91cd1e..27f90302ea1d 100644
--- a/builtin.c
+++ b/builtin.c
@@ -99,6 +99,7 @@ static int evaluate_choose(struct expression *expr)
 	} END_FOR_EACH_PTR(arg);
 
 	*expr = get_expression_value(args[0]) ? *args[1] : *args[2];
+	expr->flags = CEF_SET_ICE;
 
 	return 1;
 }
-- 
2.24.0




[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