diff options
| author | bunnei <bunneidev@gmail.com> | 2019-04-28 22:24:58 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-28 22:24:58 -0400 |
| commit | c52233ec8b26d5dc8cdca746fc181191c99fb33b (patch) | |
| tree | 9d56a04c21f541570426042e74c7befe6b279317 /src/video_core/shader/shader_ir.cpp | |
| parent | 9a3737120d551f89453c6202565f6654743fe7b0 (diff) | |
| parent | fbe8d1ceaa94c70e13a575f774967e559d0dee72 (diff) | |
Merge pull request #2322 from ReinUsesLisp/wswitch
video_core: Silent -Wswitch warnings
Diffstat (limited to 'src/video_core/shader/shader_ir.cpp')
| -rw-r--r-- | src/video_core/shader/shader_ir.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/video_core/shader/shader_ir.cpp b/src/video_core/shader/shader_ir.cpp index 17f2f711c..e4eb0dfd9 100644 --- a/src/video_core/shader/shader_ir.cpp +++ b/src/video_core/shader/shader_ir.cpp @@ -439,11 +439,14 @@ Node ShaderIR::BitfieldExtract(Node value, u32 offset, u32 bits) { return OperationCode::LogicalUGreaterEqual; case OperationCode::INegate: UNREACHABLE_MSG("Can't negate an unsigned integer"); + return {}; case OperationCode::IAbsolute: UNREACHABLE_MSG("Can't apply absolute to an unsigned integer"); + return {}; + default: + UNREACHABLE_MSG("Unknown signed operation with code={}", static_cast<u32>(operation_code)); + return {}; } - UNREACHABLE_MSG("Unknown signed operation with code={}", static_cast<u32>(operation_code)); - return {}; } -} // namespace VideoCommon::Shader
\ No newline at end of file +} // namespace VideoCommon::Shader |
