diff options
| author | bunnei <bunneidev@gmail.com> | 2018-12-21 14:12:54 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-21 14:12:54 -0500 |
| commit | e75e8b9580581d1258154d51ac03893386a500e5 (patch) | |
| tree | 625619fea43e1340d39132f660a476c291974860 /src/video_core/macro_interpreter.cpp | |
| parent | 42427b9c7a814928903ed356a5da5f437d0843d4 (diff) | |
| parent | 20859802f01e64e4407df8bf7fb362449bd68cee (diff) | |
Merge pull request #1921 from ogniK5377/no-unit
Fixed uninitialized memory due to missing returns in canary
Diffstat (limited to 'src/video_core/macro_interpreter.cpp')
| -rw-r--r-- | src/video_core/macro_interpreter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/macro_interpreter.cpp b/src/video_core/macro_interpreter.cpp index 9c55e9f1e..64f75db43 100644 --- a/src/video_core/macro_interpreter.cpp +++ b/src/video_core/macro_interpreter.cpp @@ -171,6 +171,7 @@ u32 MacroInterpreter::GetALUResult(ALUOperation operation, u32 src_a, u32 src_b) default: UNIMPLEMENTED_MSG("Unimplemented ALU operation {}", static_cast<u32>(operation)); + return 0; } } @@ -268,6 +269,7 @@ bool MacroInterpreter::EvaluateBranchCondition(BranchCondition cond, u32 value) return value != 0; } UNREACHABLE(); + return true; } } // namespace Tegra |
