[llvm] r374875 - [llvm-locstats] Fix 'only params' no entry value stats

Djordje Todorovic via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 15 03:12:14 PDT 2019


Author: djtodoro
Date: Tue Oct 15 03:12:14 2019
New Revision: 374875

URL: http://llvm.org/viewvc/llvm-project?rev=374875&view=rev
Log:
[llvm-locstats] Fix 'only params' no entry value stats

Adding the missing line.

Modified:
    llvm/trunk/utils/llvm-locstats/llvm-locstats.py

Modified: llvm/trunk/utils/llvm-locstats/llvm-locstats.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/llvm-locstats/llvm-locstats.py?rev=374875&r1=374874&r2=374875&view=diff
==============================================================================
--- llvm/trunk/utils/llvm-locstats/llvm-locstats.py (original)
+++ llvm/trunk/utils/llvm-locstats/llvm-locstats.py Tue Oct 15 03:12:14 2019
@@ -167,6 +167,7 @@ def Main():
         cov_category = \
           "params (excluding the debug entry values) " \
           "with {} of its scope covered".format(cov_bucket)
+        variables_coverage_map[cov_bucket] = json_parsed[cov_category]
   else:
     # Read the JSON for both local variables and formal parameters.
     variables_total = \




More information about the llvm-commits mailing list