[all-commits] [llvm/llvm-project] a3e398: [SVE] Fix ubsan issues in DecodeIITType

david-arm via All-commits all-commits at lists.llvm.org
Wed Jun 3 23:58:51 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: a3e3986be122bd1cdebe7f7f69c3d1c4c22c4690
      https://github.com/llvm/llvm-project/commit/a3e3986be122bd1cdebe7f7f69c3d1c4c22c4690
  Author: David Sherwood <david.sherwood at arm.com>
  Date:   2020-06-04 (Thu, 04 Jun 2020)

  Changed paths:
    M llvm/lib/IR/Function.cpp

  Log Message:
  -----------
  [SVE] Fix ubsan issues in DecodeIITType

In an earlier patch I removed the need for
IITDescriptor::ScalableVecArgument, which involved changing
DecodeIITType to pull out the last IIT_Info from the list. However,
it turns out this is unsafe and causes ubsan failures. I've tried to
fix this a different way by simply passing the last IIT_Info as an
additional argument to DecodeIITType.

Differential Revision: https://reviews.llvm.org/D81057




More information about the All-commits mailing list