[all-commits] [llvm/llvm-project] 0479c5: [dllimport] Honor always_inline when deciding whet...

Hans via All-commits all-commits at lists.llvm.org
Tue Feb 2 01:34:27 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0479c53b6c5224c16bdc78cb014e76c0b0dbc6f9
      https://github.com/llvm/llvm-project/commit/0479c53b6c5224c16bdc78cb014e76c0b0dbc6f9
  Author: Hans Wennborg <hans at chromium.org>
  Date:   2021-02-02 (Tue, 02 Feb 2021)

  Changed paths:
    M clang/lib/CodeGen/CodeGenModule.cpp
    M clang/test/CodeGenCXX/dllimport.cpp

  Log Message:
  -----------
  [dllimport] Honor always_inline when deciding whether a dllimport function should be available for inlining (PR48925)

Normally, Clang will not make dllimport functions available for inlining
if they reference non-imported symbols, as this can lead to confusing
link errors. But if the function is marked always_inline, the user
presumably knows what they're doing and the attribute should be honored.

Differential revision: https://reviews.llvm.org/D95673




More information about the All-commits mailing list