[all-commits] [llvm/llvm-project] 6d1073: [C++20] [Modules] Handle initializer for Header Units

Chuanqi Xu via All-commits all-commits at lists.llvm.org
Mon Aug 1 20:25:26 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6d10733d445506c02ebec9faa54658431857bb49
  Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
  Date:   2022-08-02 (Tue, 02 Aug 2022)

  Changed paths:
    M clang/lib/CodeGen/CGDeclCXX.cpp
    M clang/lib/CodeGen/CodeGenModule.cpp
    A clang/test/CodeGenCXX/module-initializer-header.cppm

  Log Message:
  [C++20] [Modules] Handle initializer for Header Units

Previously when we add module initializer, we forget to handle header
units. This results that we couldn't compile a Hello World Example with
Header Units. This patch tries to fix this.

Reviewed By: iains

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

More information about the All-commits mailing list