[all-commits] [llvm/llvm-project] 0496ed: [BuildLibCalls] Add additional attrs to memcpy_chk.

Florian Hahn via All-commits all-commits at lists.llvm.org
Thu Dec 2 01:50:54 PST 2021

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0496edad49939b655435ad71ffda9e366c7c3dc6
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2021-12-02 (Thu, 02 Dec 2021)

  Changed paths:
    M llvm/lib/Transforms/Utils/BuildLibCalls.cpp
    M llvm/test/Transforms/InferFunctionAttrs/annotate.ll

  Log Message:
  [BuildLibCalls] Add additional attrs to memcpy_chk.

`memcpy_chk` can be treated like `memcpy`, with the exception that it
may not return (if it aborts the program).

See D114793 for a similar patch for `memset_chk`.

Reviewed By: xbolva00

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

More information about the All-commits mailing list