summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2015-09-29 23:42:47 +0000
committerJustin Bogner <mail@justinbogner.com>2015-09-29 23:42:47 +0000
commit10c7e148c4f27cd7759cc409892e40e701db7fc0 (patch)
treed842c2cf67ef78920382368ecdfaab4c810053a0
parentd1a69a2839b3916fd833757af4db92e58860c08a (diff)
downloadbcm5719-llvm-10c7e148c4f27cd7759cc409892e40e701db7fc0.tar.gz
bcm5719-llvm-10c7e148c4f27cd7759cc409892e40e701db7fc0.zip
InstrProf: Add a missing const_cast from r248833
llvm-svn: 248859
-rw-r--r--llvm/include/llvm/ProfileData/InstrProf.h3
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));
}
};
OpenPOWER on IntegriCloud