mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 09:00:17 +02:00
x87StackOptimizationPass: Fix isValid()
Previously this wouldn't have worked, since .first isn't a valid member. The only reason it wasn't caught is because the function is never instantiated.
This commit is contained in:
1 parent
35bc502062
commit
9e26c57643
1 file changed
+1
-1
@@ -96,7 +96,7 @@ public:
|
||||
}
|
||||
|
||||
bool isValid(size_t Offset) const {
|
||||
return buffer[Offset].first;
|
||||
return buffer[Offset].Type == StackSlot::VALID;
|
||||
}
|
||||
|
||||
void clear() {
|
||||
|
||||
Reference in new issue
Block a user