diff options
| -rw-r--r-- | llvm/include/llvm/ProfileData/InstrProf.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/include/llvm/ProfileData/InstrProf.h b/llvm/include/llvm/ProfileData/InstrProf.h index 49780e4abab..668e6d3663d 100644 --- a/llvm/include/llvm/ProfileData/InstrProf.h +++ b/llvm/include/llvm/ProfileData/InstrProf.h @@ -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)); } }; |

