Skip to content

Commit ccc2032

Browse files
committed
C/C++ front-end: declare __builtin_is_constant_evaluated
GCC built-in to implement std::is_constant_evaluated. We just provide a declaration, but no implementation at this point.
1 parent c498038 commit ccc2032

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ansi-c/compiler_headers/gcc_builtin_headers_generic.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ long __builtin_expect_with_probability(long, long, double);
4444
void __builtin_clear_padding();
4545
void __builtin_speculation_safe_value();
4646
void* __builtin_speculation_safe_value_ptr(void*, ...);
47+
_Bool __builtin_is_constant_evaluated(void);
4748

4849
void* __builtin_dwarf_cfa();
4950
unsigned __builtin_dwarf_sp_column();

0 commit comments

Comments
 (0)