summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-11-07 15:35:07 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-11-07 16:56:15 +0000
commitbcd7674e06796d409aa85f77a011f701115bff17 (patch)
treec721e507848b6248a5e96c0119b5be3ea8a06778
parentc63c1a72dab96b0d090b2601eb1e7f40df2db534 (diff)
downloadbcm5719-llvm-bcd7674e06796d409aa85f77a011f701115bff17.tar.gz
bcm5719-llvm-bcd7674e06796d409aa85f77a011f701115bff17.zip
AsmWriterOperand - fix uninitialized variable warning. NFCI.
-rw-r--r--llvm/utils/TableGen/AsmWriterInst.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/AsmWriterInst.h b/llvm/utils/TableGen/AsmWriterInst.h
index 7d88e5a9d03..a59112efea4 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..
OpenPOWER on IntegriCloud