[all-commits] [llvm/llvm-project] 7b69ea: [C11] Correct global atomic pointer initialization...

Aaron Ballman via All-commits all-commits at lists.llvm.org
Sun Jul 2 11:42:50 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7b69eabdc18799e4a6c61b7ffff9b52d330c6ada
      https://github.com/llvm/llvm-project/commit/7b69eabdc18799e4a6c61b7ffff9b52d330c6ada
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2023-07-02 (Sun, 02 Jul 2023)

  Changed paths:
    M clang/lib/AST/ExprConstant.cpp
    M clang/test/CodeGen/atomic.c

  Log Message:
  -----------
  [C11] Correct global atomic pointer initialization from an integer constant

This is a follow-up to 2e275e24355cb224981f9beb2b026a3169fc7232 and
1395cde24b3641e284bb1daae7d56c189a2635e3 which corrects a missed case:
initializing an _Atomic(T *) from a null pointer constant in the form
of the integer literal 0.

Fixes https://github.com/llvm/llvm-project/issues/63550
Differential Revision: https://reviews.llvm.org/D154284




More information about the All-commits mailing list