File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -531,8 +531,17 @@ CBMC_NORETURN void report_invariant_failure(
531
531
#define DATA_INVARIANT_STRUCTURED (CONDITION, TYPENAME, ...) \
532
532
EXPAND_MACRO (INVARIANT_STRUCTURED(CONDITION, TYPENAME, __VA_ARGS__))
533
533
534
- #define UNIMPLEMENTED_FEATURE (FEATURE ) \
535
- INVARIANT (false , std::string{" Reached unimplemented " } + (FEATURE))
534
+ #if __GNUC__
535
+ # define UNIMPLEMENTED_FEATURE (FEATURE ) \
536
+ do \
537
+ { \
538
+ INVARIANT (false , std::string{" Reached unimplemented " } + (FEATURE)); \
539
+ __builtin_unreachable (); \
540
+ } while (false )
541
+ #else
542
+ # define UNIMPLEMENTED_FEATURE (FEATURE ) \
543
+ INVARIANT (false , std::string{" Reached unimplemented " } + (FEATURE))
544
+ #endif
536
545
537
546
// Legacy annotations
538
547
You can’t perform that action at this time.
0 commit comments