[all-commits] [llvm/llvm-project] 1395cd: Fix codegen for initialization of global atomics

Aaron Ballman via All-commits all-commits at lists.llvm.org
Tue Apr 25 08:37:23 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1395cde24b3641e284bb1daae7d56c189a2635e3
      https://github.com/llvm/llvm-project/commit/1395cde24b3641e284bb1daae7d56c189a2635e3
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2023-04-25 (Tue, 25 Apr 2023)

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

  Log Message:
  -----------
  Fix codegen for initialization of global atomics

This amends 2e275e24355cb224981f9beb2b026a3169fc7232. That commit added
a null to pointer cast kind when determining whether the expression can
be a valid constant initializer, but failed to update the constant
expression evaluator to perform the evaluation. This commit updates the
constant expression evaluator to handle that cast kind.




More information about the All-commits mailing list