Make really sure we're not using the IRBlock copy constructor other than on Symbian.

Turns out it ended up being used on Mac, and our asserts just debugprint and don't actually assert...
This commit is contained in:
Henrik Rydgård 2016-07-09 09:32:41 +02:00
parent 3fc255b429
commit c6d4966067
2 changed files with 3 additions and 4 deletions

View File

@ -51,15 +51,13 @@ public:
b.const_ = nullptr;
}
#ifdef __SYMBIAN32__
IRBlock(const IRBlock &b) {
*this = b;
}
IRBlock &operator=(const IRBlock &b) {
// No std::move on Symbian... But let's try not to use elsewhere.
#ifndef __SYMBIAN32__
_assert_(false);
#endif
numInstructions_ = b.numInstructions_;
numConstants_ = b.numConstants_;
instr_ = new IRInst[numInstructions_];
@ -76,6 +74,7 @@ public:
return *this;
}
#endif
~IRBlock() {
delete[] instr_;

View File

@ -59,7 +59,7 @@ void CwCheatScreen::CreateCodeList() {
for (int i = 0; i < extension.size(); i++) {
extension[i] = tolower(extension[i]);
}
if (extension != "iso" && extension != "cso" && extension != "pbp" || gameTitle == "") {
if ((extension != "iso" && extension != "cso" && extension != "pbp") || gameTitle == "") {
if (extension == "elf") {
gameTitle = "ELF000000";
} else {