summaryrefslogtreecommitdiff
path: root/src/video_core/macro_interpreter.cpp
diff options
context:
space:
mode:
authorGravatar bunnei2018-12-21 14:12:54 -0500
committerGravatar GitHub2018-12-21 14:12:54 -0500
commite75e8b9580581d1258154d51ac03893386a500e5 (patch)
tree625619fea43e1340d39132f660a476c291974860 /src/video_core/macro_interpreter.cpp
parentMerge pull request #1920 from heapo/texture_format_selection (diff)
parenthopefully fix clang format issue (diff)
downloadyuzu-e75e8b9580581d1258154d51ac03893386a500e5.tar.gz
yuzu-e75e8b9580581d1258154d51ac03893386a500e5.tar.xz
yuzu-e75e8b9580581d1258154d51ac03893386a500e5.zip
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.cpp2
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)
171 171
172 default: 172 default:
173 UNIMPLEMENTED_MSG("Unimplemented ALU operation {}", static_cast<u32>(operation)); 173 UNIMPLEMENTED_MSG("Unimplemented ALU operation {}", static_cast<u32>(operation));
174 return 0;
174 } 175 }
175} 176}
176 177
@@ -268,6 +269,7 @@ bool MacroInterpreter::EvaluateBranchCondition(BranchCondition cond, u32 value)
268 return value != 0; 269 return value != 0;
269 } 270 }
270 UNREACHABLE(); 271 UNREACHABLE();
272 return true;
271} 273}
272 274
273} // namespace Tegra 275} // namespace Tegra