diff options
| author | Eric Christopher <echristo@gmail.com> | 2019-04-30 21:44:21 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@gmail.com> | 2019-04-30 21:44:21 +0000 |
| commit | 6435102c03e3ec15328169b33dfdf6c567e90928 (patch) | |
| tree | 5aa4c0a614122cdead726c60d50256fe0dbbf2b4 | |
| parent | a9b9ab8bfd4f7a675b3b1b59b94ff054582a953c (diff) | |
| download | bcm5719-llvm-6435102c03e3ec15328169b33dfdf6c567e90928.tar.gz bcm5719-llvm-6435102c03e3ec15328169b33dfdf6c567e90928.zip | |
Fix a few -Werror warnings:
- Remove a variable only used in an assert
- Fix pessimizing move warning around copy elision
llvm-svn: 359617
| -rw-r--r-- | llvm/lib/ProfileData/InstrProf.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/ProfileData/InstrProf.cpp b/llvm/lib/ProfileData/InstrProf.cpp index 560e39038a5..582049eabfb 100644 --- a/llvm/lib/ProfileData/InstrProf.cpp +++ b/llvm/lib/ProfileData/InstrProf.cpp @@ -535,8 +535,7 @@ void InstrProfRecord::overlapValueProfData(uint32_t ValueKind, OverlapStats &Overlap, OverlapStats &FuncLevelOverlap) { uint32_t ThisNumValueSites = getNumValueSites(ValueKind); - uint32_t OtherNumValueSites = Other.getNumValueSites(ValueKind); - assert(ThisNumValueSites == OtherNumValueSites); + assert(ThisNumValueSites == Other.getNumValueSites(ValueKind)); if (!ThisNumValueSites) return; @@ -1183,10 +1182,10 @@ Error OverlapStats::accumuateCounts(const std::string &BaseFilename, }; auto Ret = getProfileSum(BaseFilename, Base); if (Ret) - return std::move(Ret); + return Ret; Ret = getProfileSum(TestFilename, Test); if (Ret) - return std::move(Ret); + return Ret; this->BaseFilename = &BaseFilename; this->TestFilename = &TestFilename; Valid = true; |

