diff options
Diffstat (limited to 'llvm/utils/TableGen/DecoderEmitter.cpp')
-rw-r--r-- | llvm/utils/TableGen/DecoderEmitter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/utils/TableGen/DecoderEmitter.cpp b/llvm/utils/TableGen/DecoderEmitter.cpp index f0f07df..eb3b300 100644 --- a/llvm/utils/TableGen/DecoderEmitter.cpp +++ b/llvm/utils/TableGen/DecoderEmitter.cpp @@ -1182,7 +1182,7 @@ bool FilterChooser::emitBinaryParser(raw_ostream &OS, indent Indent, } bool OpHasCompleteDecoder; - if (Decoder != "") { + if (!Decoder.empty()) { OpHasCompleteDecoder = OpInfo.HasCompleteDecoder; OS << Indent << "if (!Check(S, " << Decoder << "(MI, tmp, Address, Decoder))) { " @@ -1946,7 +1946,7 @@ populateInstruction(const CodeGenTarget &Target, const Record &EncodingDef, // If the instruction has specified a custom decoding hook, use that instead // of trying to auto-generate the decoder. StringRef InstDecoder = EncodingDef.getValueAsString("DecoderMethod"); - if (InstDecoder != "") { + if (!InstDecoder.empty()) { bool HasCompleteInstDecoder = EncodingDef.getValueAsBit("hasCompleteDecoder"); InsnOperands.push_back( |