[llvm] 4814b68 - [SystemZ] Fix python failure in test case

Ulrich Weigand via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 7 01:26:54 PST 2020


Author: Ulrich Weigand
Date: 2020-01-07T10:26:37+01:00
New Revision: 4814b68b7ad2a4b0425d31a93ed2583cc1634445

URL: https://github.com/llvm/llvm-project/commit/4814b68b7ad2a4b0425d31a93ed2583cc1634445
DIFF: https://github.com/llvm/llvm-project/commit/4814b68b7ad2a4b0425d31a93ed2583cc1634445.diff

LOG: [SystemZ] Fix python failure in test case

With recent Python the Large/spill-02.py test failed with an error:
TypeError: can't multiply sequence by non-int of type 'float'

Added: 
    

Modified: 
    llvm/test/CodeGen/SystemZ/Large/spill-02.py

Removed: 
    


################################################################################
diff  --git a/llvm/test/CodeGen/SystemZ/Large/spill-02.py b/llvm/test/CodeGen/SystemZ/Large/spill-02.py
index f8359932efb2..0fefe639c5d8 100644
--- a/llvm/test/CodeGen/SystemZ/Large/spill-02.py
+++ b/llvm/test/CodeGen/SystemZ/Large/spill-02.py
@@ -22,7 +22,7 @@
 
 from __future__ import print_function
 
-args = (8168 - 160) / 8 + (5 - 1)
+args = int((8168 - 160) / 8 + (5 - 1))
 
 print('declare i64 *@foo(i64 *%s)' % (', i64' * args))
 print('declare void @bar(i64 *)')


        


More information about the llvm-commits mailing list