[llvm] bcd7674 - AsmWriterOperand - fix uninitialized variable warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 7 09:07:02 PST 2019
Author: Simon Pilgrim
Date: 2019-11-07T16:56:15Z
New Revision: bcd7674e06796d409aa85f77a011f701115bff17
URL: https://github.com/llvm/llvm-project/commit/bcd7674e06796d409aa85f77a011f701115bff17
DIFF: https://github.com/llvm/llvm-project/commit/bcd7674e06796d409aa85f77a011f701115bff17.diff
LOG: AsmWriterOperand - fix uninitialized variable warning. NFCI.
Added:
Modified:
llvm/utils/TableGen/AsmWriterInst.h
Removed:
################################################################################
diff --git a/llvm/utils/TableGen/AsmWriterInst.h b/llvm/utils/TableGen/AsmWriterInst.h
index 7d88e5a9d037..a59112efea44 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..
More information about the llvm-commits
mailing list