diff options
| author | Manman Ren <manman.ren@gmail.com> | 2014-02-15 01:29:02 +0000 |
|---|---|---|
| committer | Manman Ren <manman.ren@gmail.com> | 2014-02-15 01:29:02 +0000 |
| commit | 8b8ec99047cd22fc8c8155ac6cb5fe9cd2146162 (patch) | |
| tree | dc2fb325efb86e713cd191211c7219461b6c82e5 /lib/CodeGen/CodeGenPGO.cpp | |
| parent | ec7248c93fa7188e326de3e2e6d883e9d2dc890d (diff) | |
| download | clang-8b8ec99047cd22fc8c8155ac6cb5fe9cd2146162.tar.gz clang-8b8ec99047cd22fc8c8155ac6cb5fe9cd2146162.tar.bz2 clang-8b8ec99047cd22fc8c8155ac6cb5fe9cd2146162.tar.xz | |
PGO: fix a bug in parsing pgo data.
When a function has a single counter, we will offset the pointer by 1 when
parsing the next function. If a function has multiple counters, we are
okay after skipping rest of the counters.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201456 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenPGO.cpp')
| -rw-r--r-- | lib/CodeGen/CodeGenPGO.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenPGO.cpp b/lib/CodeGen/CodeGenPGO.cpp index d7c4709612..5475342ecd 100644 --- a/lib/CodeGen/CodeGenPGO.cpp +++ b/lib/CodeGen/CodeGenPGO.cpp @@ -72,7 +72,7 @@ PGOProfileData::PGOProfileData(CodeGenModule &CGM, std::string Path) ReportBadPGOData(CGM, "pgo-data file has bad count value"); return; } - CurPtr = EndPtr + 1; + CurPtr = EndPtr; // Point to '\n'. FunctionCounts[MangledName] = Count; MaxCount = Count > MaxCount ? Count : MaxCount; |
