summaryrefslogtreecommitdiff
path: root/source/core/slang-signal.cpp
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2024-08-20 06:06:34 +0800
committerGitHub <noreply@github.com>2024-08-19 15:06:34 -0700
commitf77a5ac9d1547a4394bba4ab8e94d905972c79b7 (patch)
tree0d66b3c8386d8cb1e75970c93914fe2a60f03c61 /source/core/slang-signal.cpp
parent453683bf44f2112719802eaac2b332d49eebd640 (diff)
Remove using SpvStorageClass values casted into AddressSpace values (#4861)
* Remove using SpvStorageClass values casted into AddressSpace values Also removes support for specific storage classes in __target_intrinsic snippets * remove SLANG_RETURN_NEVER macro * squash warnings * Make nonexhaustive switch statement error on gcc * Add SLANG_EXHAUSTIVE_SWITCH_BEGIN/END macros --------- Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'source/core/slang-signal.cpp')
-rw-r--r--source/core/slang-signal.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/core/slang-signal.cpp b/source/core/slang-signal.cpp
index d8218b379..5f53cba93 100644
--- a/source/core/slang-signal.cpp
+++ b/source/core/slang-signal.cpp
@@ -36,7 +36,7 @@ String _getMessage(SignalType type, char const* message)
// One point of having as a single function is a choke point both for handling (allowing different
// handling scenarios) as well as a choke point to set a breakpoint to catch 'signal' types
-SLANG_RETURN_NEVER void handleSignal(SignalType type, char const* message)
+[[noreturn]] void handleSignal(SignalType type, char const* message)
{
StringBuilder buf;
const char*const typeText = _getSignalTypeAsText(type);