Skip to content

Commit 044ff78

Browse files
[TableGen] Simplify a string comparison (NFC) (#137584)
1 parent 0d56799 commit 044ff78

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/utils/TableGen/DXILEmitter.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,9 @@ DXILOperationDesc::DXILOperationDesc(const Record *R) {
172172
// Get the operation class
173173
OpClass = R->getValueAsDef("OpClass")->getName();
174174

175-
if (!OpClass.str().compare("UnknownOpClass")) {
175+
if (OpClass.str() == "UnknownOpClass")
176176
PrintFatalError(R, Twine("Unspecified DXIL OpClass for DXIL operation - ") +
177177
OpName);
178-
}
179178

180179
auto IntrinsicSelectRecords = R->getValueAsListOfDefs("intrinsics");
181180
if (IntrinsicSelectRecords.size()) {

0 commit comments

Comments
 (0)