summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2014-04-25 02:45:33 +0000
committerJustin Bogner <mail@justinbogner.com>2014-04-25 02:45:33 +0000
commit38ac7e92d8a489cc24c8bb877db2468cb80b55e2 (patch)
tree0f70bcfa1748a7f25cb7daf014ac5be7d4f3aaa8 /tools
parentb33022e1da567d52163b1b621f5746d10814232c (diff)
downloadllvm-38ac7e92d8a489cc24c8bb877db2468cb80b55e2.tar.gz
llvm-38ac7e92d8a489cc24c8bb877db2468cb80b55e2.tar.bz2
llvm-38ac7e92d8a489cc24c8bb877db2468cb80b55e2.tar.xz
ProfileData: Treat missing function counts as malformed
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207172 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/llvm-profdata/llvm-profdata.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/llvm-profdata/llvm-profdata.cpp b/tools/llvm-profdata/llvm-profdata.cpp
index 0bd8e834f4..3e58bc205d 100644
--- a/tools/llvm-profdata/llvm-profdata.cpp
+++ b/tools/llvm-profdata/llvm-profdata.cpp
@@ -111,6 +111,7 @@ int show_main(int argc, const char *argv[]) {
Func.Name.find(ShowFunction) != Func.Name.npos);
++TotalFunctions;
+ assert(Func.Counts.size() > 0 && "function missing entry counter");
if (Func.Counts[0] > MaxFunctionCount)
MaxFunctionCount = Func.Counts[0];