[all-commits] [llvm/llvm-project] 22ee51: [Support] Remove incorrect noalias return attribut...

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu Jan 20 00:24:24 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 22ee510dac9440a74b2e5b3fe3ff13ccdbf55af3
      https://github.com/llvm/llvm-project/commit/22ee510dac9440a74b2e5b3fe3ff13ccdbf55af3
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2022-01-20 (Thu, 20 Jan 2022)

  Changed paths:
    M llvm/include/llvm/Support/Allocator.h

  Log Message:
  -----------
  [Support] Remove incorrect noalias return attribute in BumpPtrAllocator

The memory returned by the Allocate() function is also otherwise
accessible -- and is indeed accessed by the DestroyAll() method of
SpecificBumpPtrAlloactor. This is a violation of the noalias return
contract.

This should address the issue reported in
https://reviews.llvm.org/D116728#3252464.

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




More information about the All-commits mailing list