summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-11-06 16:30:04 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-11-06 17:04:21 +0000
commitcca01c0347e85f184f06676a421bb8456e7cfa36 (patch)
tree23f5c3e433a872c3ed1dfcee54f158a6b32ab7c4
parent216dab915285c5b9e2c56be9b6541f35ccb96303 (diff)
downloadbcm5719-llvm-cca01c0347e85f184f06676a421bb8456e7cfa36.tar.gz
bcm5719-llvm-cca01c0347e85f184f06676a421bb8456e7cfa36.zip
CodeGenInstruction - fix uninitialized variable warnings. NFCI.
-rw-r--r--llvm/utils/TableGen/CodeGenInstruction.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/llvm/utils/TableGen/CodeGenInstruction.h b/llvm/utils/TableGen/CodeGenInstruction.h
index 2cb28425df7..969a32f0e4b 100644
--- a/llvm/utils/TableGen/CodeGenInstruction.h
+++ b/llvm/utils/TableGen/CodeGenInstruction.h
@@ -29,10 +29,11 @@ template <typename T> class ArrayRef;
class CGIOperandList {
public:
class ConstraintInfo {
- enum { None, EarlyClobber, Tied } Kind;
- unsigned OtherTiedOperand;
+ enum { None, EarlyClobber, Tied } Kind = None;
+ unsigned OtherTiedOperand = 0;
+
public:
- ConstraintInfo() : Kind(None) {}
+ ConstraintInfo() = default;
static ConstraintInfo getEarlyClobber() {
ConstraintInfo I;
@@ -332,9 +333,9 @@ template <typename T> class ArrayRef;
struct ResultOperand {
private:
std::string Name;
- Record *R;
+ Record *R = nullptr;
+ int64_t Imm = 0;
- int64_t Imm;
public:
enum {
K_Record,
OpenPOWER on IntegriCloud