[all-commits] [llvm/llvm-project] b556ce: [IR] adjust assert when replacing undef elements i...

RotateRight via All-commits all-commits at lists.llvm.org
Mon Nov 4 07:05:29 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b556ce3992709e1f6302ca1d4c296f57e83cd6a7
      https://github.com/llvm/llvm-project/commit/b556ce3992709e1f6302ca1d4c296f57e83cd6a7
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2019-11-04 (Mon, 04 Nov 2019)

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

  Log Message:
  -----------
  [IR] adjust assert when replacing undef elements in vector constant

As noted in follow-up to:
rGa1e8ad4f2fa7

It's not safe to assume that an element of the constant is always
non-null. It's definitely not an expected case for the current
instcombine user, but that may not hold if this function is
eventually called from arbitrary places.




More information about the All-commits mailing list