OSDN Git Service

[RISCV] Avoid signed integer overflow UB in RISCVMatInt::generateInstSeq
authorAlex Bradbury <asb@lowrisc.org>
Thu, 18 Jul 2019 04:02:58 +0000 (04:02 +0000)
committerAlex Bradbury <asb@lowrisc.org>
Thu, 18 Jul 2019 04:02:58 +0000 (04:02 +0000)
commitbb27a14e4d41ee775d44dc8cb3957b9394d4f71a
tree9787590fc9f23e8e887e98ee8411a0ff05b0f210
parentb67031112fd3f6d6bb03880e31ec179ebbf6153d
[RISCV] Avoid signed integer overflow UB in RISCVMatInt::generateInstSeq

Found by UBSan.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@366398 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/RISCV/Utils/RISCVMatInt.cpp