[all-commits] [llvm/llvm-project] b20801: CodeGen: Fix implementation of __builtin_trivially...

Peter Collingbourne via All-commits all-commits at lists.llvm.org
Fri May 23 17:03:11 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b20801646a72b936983261b249e2bc97987445e4
      https://github.com/llvm/llvm-project/commit/b20801646a72b936983261b249e2bc97987445e4
  Author: Peter Collingbourne <pcc at google.com>
  Date:   2025-05-23 (Fri, 23 May 2025)

  Changed paths:
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/test/CodeGenCXX/cxx2c-trivially-relocatable.cpp

  Log Message:
  -----------
  CodeGen: Fix implementation of __builtin_trivially_relocate.

The builtin is documented to copy `count` elements, but the implementation
copies `count` bytes. Fix that.

Reviewers: cor3ntin, ojhunt

Pull Request: https://github.com/llvm/llvm-project/pull/140312



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list