fix qt 5.12 compatibility

This commit is contained in:
Roy Qu 2023-03-04 11:51:27 +00:00
parent 2751c4dd9a
commit 00431c0979
1 changed files with 7 additions and 0 deletions

View File

@ -1564,7 +1564,14 @@ void ASMSyntaxer::initData()
Instructions.insert("vxorps",QObject::tr("Bitwise Logical XOR for Single-Precision Floating-Point Values.")); Instructions.insert("vxorps",QObject::tr("Bitwise Logical XOR for Single-Precision Floating-Point Values."));
Instructions.insert("vpclmulqdq",QObject::tr("Carry-Less Multiplication Quadword, Requires PCLMULQDQ CPUID-flag.")); Instructions.insert("vpclmulqdq",QObject::tr("Carry-Less Multiplication Quadword, Requires PCLMULQDQ CPUID-flag."));
#endif #endif
#if QT_VERSION >= QT_VERSION_CHECK(5,15,0)
InstructionNames=QSet<QString>(Instructions.keyBegin(),Instructions.keyEnd()); InstructionNames=QSet<QString>(Instructions.keyBegin(),Instructions.keyEnd());
#else
InstructionNames.clear();
foreach(const QString& s,Instructions.keys()) {
InstructionNames.insert(s);
}
#endif
} }
} }