diff options
| author | 2020-04-02 03:34:19 -0300 | |
|---|---|---|
| committer | 2020-04-02 03:34:27 -0300 | |
| commit | e1bd89e1c2dec0d10f3879966a9d2460d22889d7 (patch) | |
| tree | 58371593f9cb717adfa16f3d866a0f588914a735 | |
| parent | Merge pull request #3552 from jroweboy/single-context (diff) | |
| download | yuzu-e1bd89e1c2dec0d10f3879966a9d2460d22889d7.tar.gz yuzu-e1bd89e1c2dec0d10f3879966a9d2460d22889d7.tar.xz yuzu-e1bd89e1c2dec0d10f3879966a9d2460d22889d7.zip | |
shader/memory: Silence no return value warning
Silences a warning about control paths not all returning a value.
| -rw-r--r-- | src/video_core/shader/decode/memory.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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) { | |||
| 44 | return OperationCode::AtomicIXor; | 44 | return OperationCode::AtomicIXor; |
| 45 | case AtomicOp::Exch: | 45 | case AtomicOp::Exch: |
| 46 | return OperationCode::AtomicIExchange; | 46 | return OperationCode::AtomicIExchange; |
| 47 | default: | ||
| 48 | UNIMPLEMENTED_MSG("op={}", static_cast<int>(op)); | ||
| 49 | return OperationCode::AtomicIAdd; | ||
| 47 | } | 50 | } |
| 48 | }(); | 51 | }(); |
| 49 | return SignedOperation(operation_code, is_signed, std::move(memory), std::move(data)); | 52 | return SignedOperation(operation_code, is_signed, std::move(memory), std::move(data)); |