mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-27 16:02:37 +00:00
Consolidate instruction operand bounds checks
This commit is contained in:
1 parent
a9620f98f4
commit
d1c99bbfb0
1 file changed
+1
-2
@@ -187,11 +187,10 @@ size_t Inst::NumPhiBlocks() const {
|
||||
}
|
||||
|
||||
Value Inst::Arg(size_t index) const {
|
||||
EXIT_IF(index >= NumArgs());
|
||||
if (num_args <= InlineArity) {
|
||||
EXIT_IF(index >= num_args);
|
||||
return fixed_args[index];
|
||||
}
|
||||
EXIT_IF(index >= NumArgs());
|
||||
return num_args == PhiArity ? phi_args[index].second : large_args[index];
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user