From 0ecc14ae7e9a255ea7dd2eb2002dc4895b3841ad Mon Sep 17 00:00:00 2001 From: Justin Bogner Date: Tue, 29 Sep 2015 23:42:47 +0000 Subject: [PATCH] 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 --- include/llvm/ProfileData/InstrProf.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/llvm/ProfileData/InstrProf.h b/include/llvm/ProfileData/InstrProf.h index 49780e4abab..668e6d3663d 100644 --- a/include/llvm/ProfileData/InstrProf.h +++ b/include/llvm/ProfileData/InstrProf.h @@ -127,7 +127,8 @@ struct InstrProfRecord { std::vector & getValueSitesForKind(uint32_t ValueKind) { return const_cast &>( - this->getValueSitesForKind(ValueKind)); + const_cast(this) + ->getValueSitesForKind(ValueKind)); } }; -- 2.34.1