InstrProf: Add a missing const_cast from r248833

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248859 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Justin Bogner 2015-09-29 23:42:47 +00:00
parent bc68baa694
commit 0ecc14ae7e

View File

@ -127,7 +127,8 @@ struct InstrProfRecord {
std::vector<InstrProfValueSiteRecord> &
getValueSitesForKind(uint32_t ValueKind) {
return const_cast<std::vector<InstrProfValueSiteRecord> &>(
this->getValueSitesForKind(ValueKind));
const_cast<const InstrProfRecord *>(this)
->getValueSitesForKind(ValueKind));
}
};