diff mbox series

constexpr: mark __builtin_choose_expr() as constexpr

Message ID 20191212224720.64551-1-luc.vanoostenryck@gmail.com (mailing list archive)
State Rejected, archived
Headers show
Series constexpr: mark __builtin_choose_expr() as constexpr | expand

Commit Message

Luc Van Oostenryck Dec. 12, 2019, 10:47 p.m. UTC
__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@gmail.com>
---
 builtin.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

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;
 }