AsmWriterOperand - fix uninitialized variable warning. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 7 Nov 2019 15:35:07 +0000 (15:35 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 7 Nov 2019 16:56:15 +0000 (16:56 +0000)
llvm/utils/TableGen/AsmWriterInst.h

index 7d88e5a..a59112e 100644 (file)
@@ -36,7 +36,7 @@ namespace llvm {
 
     /// MiOpNo - For isMachineInstrOperand, this is the operand number of the
     /// machine instruction.
-    unsigned MIOpNo;
+    unsigned MIOpNo = 0;
 
     /// Str - For isLiteralTextOperand, this IS the literal text.  For
     /// isMachineInstrOperand, this is the PrinterMethodName for the operand..