Skip to content

Commit 34b2b4a

Browse files
committed
Fix: Don't return NULL for a struct
1 parent 501f6db commit 34b2b4a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

llvm/utils/TableGen/PrinterCapstone.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1376,10 +1376,6 @@ void PrinterCapstone::asmWriterEmitMnemonicDecodeTable(
13761376
OS << " // Emit the opcode for the instruction.\n";
13771377
OS << BitsString;
13781378

1379-
// Make sure we don't return an invalid pointer if bits is 0
1380-
OS << " if (Bits == 0)\n"
1381-
" return NULL;\n";
1382-
13831379
// Return mnemonic string and bits.
13841380
OS << " MnemonicBitsInfo MBI = {\n"
13851381
<< "#ifndef CAPSTONE_DIET\n"

0 commit comments

Comments
 (0)