From: Simon Pilgrim Date: Thu, 7 Nov 2019 15:35:07 +0000 (+0000) Subject: AsmWriterOperand - fix uninitialized variable warning. NFCI. X-Git-Tag: llvmorg-11-init~4790 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bcd7674e06796d409aa85f77a011f701115bff17;p=platform%2Fupstream%2Fllvm.git AsmWriterOperand - fix uninitialized variable warning. NFCI. --- diff --git a/llvm/utils/TableGen/AsmWriterInst.h b/llvm/utils/TableGen/AsmWriterInst.h index 7d88e5a..a59112e 100644 --- a/llvm/utils/TableGen/AsmWriterInst.h +++ b/llvm/utils/TableGen/AsmWriterInst.h @@ -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..