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 @@ -529,8 +529,17 @@ CBMC_NORETURN void report_invariant_failure(
529
529
#define DATA_INVARIANT_STRUCTURED (CONDITION, TYPENAME, ...) \
530
530
EXPAND_MACRO (INVARIANT_STRUCTURED(CONDITION, TYPENAME, __VA_ARGS__))
531
531
532
- #define UNIMPLEMENTED_FEATURE (FEATURE ) \
533
- INVARIANT (false , std::string{" Reached unimplemented " } + (FEATURE))
532
+ #if __GNUC__
533
+ # define UNIMPLEMENTED_FEATURE (FEATURE ) \
534
+ do \
535
+ { \
536
+ INVARIANT (false , std::string{" Reached unimplemented " } + (FEATURE)); \
537
+ __builtin_unreachable (); \
538
+ } while (false )
539
+ #else
540
+ # define UNIMPLEMENTED_FEATURE (FEATURE ) \
541
+ INVARIANT (false , std::string{" Reached unimplemented " } + (FEATURE))
542
+ #endif
534
543
535
544
// Legacy annotations
536
545
You can’t perform that action at this time.
0 commit comments