mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-14 07:31:53 +00:00
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:
parent
bc68baa694
commit
0ecc14ae7e
@ -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));
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user