From e1bd89e1c2dec0d10f3879966a9d2460d22889d7 Mon Sep 17 00:00:00 2001 From: ReinUsesLisp Date: Thu, 2 Apr 2020 03:34:19 -0300 Subject: shader/memory: Silence no return value warning Silences a warning about control paths not all returning a value. --- src/video_core/shader/decode/memory.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/video_core') diff --git a/src/video_core/shader/decode/memory.cpp b/src/video_core/shader/decode/memory.cpp index 28a49addd..b8f63922f 100644 --- a/src/video_core/shader/decode/memory.cpp +++ b/src/video_core/shader/decode/memory.cpp @@ -44,6 +44,9 @@ Node GetAtomOperation(AtomicOp op, bool is_signed, Node memory, Node data) { return OperationCode::AtomicIXor; case AtomicOp::Exch: return OperationCode::AtomicIExchange; + default: + UNIMPLEMENTED_MSG("op={}", static_cast(op)); + return OperationCode::AtomicIAdd; } }(); return SignedOperation(operation_code, is_signed, std::move(memory), std::move(data)); -- cgit v1.2.3