diff --git a/include/llvm/CodeGen/PBQPRAConstraint.h b/include/llvm/CodeGen/PBQPRAConstraint.h index 8f66bfacb1b..147bc4a83d3 100644 --- a/include/llvm/CodeGen/PBQPRAConstraint.h +++ b/include/llvm/CodeGen/PBQPRAConstraint.h @@ -61,7 +61,7 @@ public: } private: std::vector> Constraints; - virtual void anchor(); + virtual void anchor() override; }; } diff --git a/lib/DebugInfo/DWARFUnit.h b/lib/DebugInfo/DWARFUnit.h index 09eb55fc323..786f00f5e8e 100644 --- a/lib/DebugInfo/DWARFUnit.h +++ b/lib/DebugInfo/DWARFUnit.h @@ -71,7 +71,7 @@ public: typedef typename UnitVector::iterator iterator; typedef llvm::iterator_range iterator_range; - UnitType *getUnitForOffset(uint32_t Offset) const { + UnitType *getUnitForOffset(uint32_t Offset) const override { auto *CU = std::upper_bound(this->begin(), this->end(), Offset, UnitOffsetComparator()); if (CU != this->end())