OSDN Git Service

[PowerPC] Fix transform in table gen file causing UB
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Fri, 16 Feb 2018 14:49:01 +0000 (14:49 +0000)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Fri, 16 Feb 2018 14:49:01 +0000 (14:49 +0000)
commit148bc17b95d45b61ca89bb1fa50b944ebdc7f917
treea4229494bc6cd2334a418d91a4cdbe1b38c76334
parent63623d97024c30ea4337cf2b5b7cd9b225fcc22f
[PowerPC] Fix transform in table gen file causing UB

Running a bootstrap build with UBSan produces a number of instances where
we have signed integer overflow due to this transform. Change the type to
long to prevent this UB on 64-bit build machines.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@325347 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCInstrInfo.td