[TableGen] Simplify a string comparison (NFC) (#137584)
This commit is contained in:
parent
0d56799457
commit
044ff78adc
@ -172,10 +172,9 @@ DXILOperationDesc::DXILOperationDesc(const Record *R) {
|
|||||||
// Get the operation class
|
// Get the operation class
|
||||||
OpClass = R->getValueAsDef("OpClass")->getName();
|
OpClass = R->getValueAsDef("OpClass")->getName();
|
||||||
|
|
||||||
if (!OpClass.str().compare("UnknownOpClass")) {
|
if (OpClass.str() == "UnknownOpClass")
|
||||||
PrintFatalError(R, Twine("Unspecified DXIL OpClass for DXIL operation - ") +
|
PrintFatalError(R, Twine("Unspecified DXIL OpClass for DXIL operation - ") +
|
||||||
OpName);
|
OpName);
|
||||||
}
|
|
||||||
|
|
||||||
auto IntrinsicSelectRecords = R->getValueAsListOfDefs("intrinsics");
|
auto IntrinsicSelectRecords = R->getValueAsListOfDefs("intrinsics");
|
||||||
if (IntrinsicSelectRecords.size()) {
|
if (IntrinsicSelectRecords.size()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user