diff options
author | Kazu Hirata <kazu@google.com> | 2025-08-05 07:39:14 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-05 07:39:14 -0700 |
commit | cf18e5e0f84b23f5dc410af5447ca03b62aaa12c (patch) | |
tree | 071474a1c14e5287494a7ebd9ef98414bf7c38b1 /llvm/lib | |
parent | 94dc3c6c49d94b599619bcc1e1dc0b0f67a5cd48 (diff) | |
download | llvm-cf18e5e0f84b23f5dc410af5447ca03b62aaa12c.zip llvm-cf18e5e0f84b23f5dc410af5447ca03b62aaa12c.tar.gz llvm-cf18e5e0f84b23f5dc410af5447ca03b62aaa12c.tar.bz2 |
[ProfileData] Remove an unnecessary cast (NFC) (#152087)
new already returns ValueProfData *.
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/ProfileData/InstrProf.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/ProfileData/InstrProf.cpp b/llvm/lib/ProfileData/InstrProf.cpp index bd3964c..5425729 100644 --- a/llvm/lib/ProfileData/InstrProf.cpp +++ b/llvm/lib/ProfileData/InstrProf.cpp @@ -1160,8 +1160,7 @@ void getValueForSiteInstrProf(const void *R, InstrProfValueData *Dst, } ValueProfData *allocValueProfDataInstrProf(size_t TotalSizeInBytes) { - ValueProfData *VD = - (ValueProfData *)(new (::operator new(TotalSizeInBytes)) ValueProfData()); + ValueProfData *VD = new (::operator new(TotalSizeInBytes)) ValueProfData(); memset(VD, 0, TotalSizeInBytes); return VD; } |