[LNT] r213271 - Fix 'Fix crash when no result to compare against'
Yi Kong
Yi.Kong at arm.com
Thu Jul 17 09:04:23 PDT 2014
Author: kongyi
Date: Thu Jul 17 11:04:23 2014
New Revision: 213271
URL: http://llvm.org/viewvc/llvm-project?rev=213271&view=rev
Log:
Fix 'Fix crash when no result to compare against'
Modified:
lnt/trunk/lnt/server/reporting/analysis.py
Modified: lnt/trunk/lnt/server/reporting/analysis.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/reporting/analysis.py?rev=213271&r1=213270&r2=213271&view=diff
==============================================================================
--- lnt/trunk/lnt/server/reporting/analysis.py (original)
+++ lnt/trunk/lnt/server/reporting/analysis.py Thu Jul 17 11:04:23 2014
@@ -248,7 +248,7 @@ class RunInfo(object):
# Smallest possible change we ever look for.
MIN_VALUE = 0.00001
- values = [v + MIN_VALUE for v in run_values if v]
+ values = [v + MIN_VALUE for v in run_values if v is not None]
if not values:
return None
More information about the llvm-commits
mailing list