summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/include/llvm/CodeGen/MachineFunction.h4
-rw-r--r--llvm/lib/CodeGen/MachineFunction.cpp2
2 files changed, 2 insertions, 4 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineFunction.h b/llvm/include/llvm/CodeGen/MachineFunction.h
index b34978550f1..e0c7dd24423 100644
--- a/llvm/include/llvm/CodeGen/MachineFunction.h
+++ b/llvm/include/llvm/CodeGen/MachineFunction.h
@@ -127,7 +127,7 @@ public:
Legalized,
RegBankSelected,
Selected,
- LastProperty,
+ LastProperty = Selected,
};
bool hasProperty(Property P) const {
@@ -161,7 +161,7 @@ public:
private:
BitVector Properties =
- BitVector(static_cast<unsigned>(Property::LastProperty));
+ BitVector(static_cast<unsigned>(Property::LastProperty)+1);
};
class MachineFunction {
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp
index c84faafaa48..4cdb6c890a5 100644
--- a/llvm/lib/CodeGen/MachineFunction.cpp
+++ b/llvm/lib/CodeGen/MachineFunction.cpp
@@ -85,8 +85,6 @@ void MachineFunctionProperties::print(raw_ostream &ROS, bool OnlySet) const {
case Property::Selected:
ROS << (HasProperty ? "" : "not ") << "selected";
break;
- default:
- break;
}
}
#endif
OpenPOWER on IntegriCloud