[all-commits] [llvm/llvm-project] 630d26: Analysis: only query size of sized objects.

Tim Northover via All-commits all-commits at lists.llvm.org
Wed Oct 14 04:16:28 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 630d2647986aa6d672dce184460d7ca3349eb006
      https://github.com/llvm/llvm-project/commit/630d2647986aa6d672dce184460d7ca3349eb006
  Author: Tim Northover <t.p.northover at gmail.com>
  Date:   2020-10-14 (Wed, 14 Oct 2020)

  Changed paths:
    M llvm/lib/Analysis/MemoryBuiltins.cpp
    A llvm/test/Transforms/InstCombine/object-size-opaque.ll

  Log Message:
  -----------
  Analysis: only query size of sized objects.

Recently we started looking into sret parameters, though the issue could crop
up elsewhere. If the pointee type is opaque, we should not try to compute its
size because that leads to an assertion failure.




More information about the All-commits mailing list