summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-06-29 12:33:17 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-06-29 12:33:17 +0900
commit1ce9c37257111df15ca646c526b86798fab5775e (patch)
tree482e4fb2e4ed57070e0f3437d0ccb52b2ad829c4
parent94ab244b43e1aa59dfef9f200b1c253f70975c7e (diff)
downloadruby-1ce9c37257111df15ca646c526b86798fab5775e.tar.gz
Revert "RBIMPL_UNREACHABLE_RETURN: evaluate the argument"
This reverts commit c8dc2bf1401fc01d35a4a7587ed224f1f2fe29e6. No longer necessary.
-rw-r--r--include/ruby/internal/assume.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/internal/assume.h b/include/ruby/internal/assume.h
index 5af1c3c974..e95b2fb12a 100644
--- a/include/ruby/internal/assume.h
+++ b/include/ruby/internal/assume.h
@@ -42,7 +42,7 @@
/** Wraps (or simulates) `__builtin_unreachable`. */
#if RBIMPL_HAS_BUILTIN(__builtin_unreachable)
-# define RBIMPL_UNREACHABLE_RETURN(_) (__builtin_unreachable(), (_))
+# define RBIMPL_UNREACHABLE_RETURN(_) __builtin_unreachable()
#elif defined(RBIMPL_HAVE___ASSUME)
# define RBIMPL_UNREACHABLE_RETURN(_) return (__assume(0), (_))