[all-commits] [llvm/llvm-project] 3b0677: Headers: use C++ inline semantics in C++ mode

Saleem Abdulrasool via All-commits all-commits at lists.llvm.org
Thu Apr 20 09:03:15 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3b0677964c46f2d98499eb6b177bcbfca704b109
      https://github.com/llvm/llvm-project/commit/3b0677964c46f2d98499eb6b177bcbfca704b109
  Author: Saleem Abdulrasool <compnerd at compnerd.org>
  Date:   2023-04-20 (Thu, 20 Apr 2023)

  Changed paths:
    M clang/lib/Headers/adxintrin.h

  Log Message:
  -----------
  Headers: use C++ inline semantics in C++ mode

When building with the 17.5.0 preview toolset for MSVC and building with
modules, the definition of _addcarry_u64 and _subborrow_u64 seem to
cause issues due to the use of GNU inline semantics. Change the headers
to prefer C++ inline semantics for C++ compilation, falling back to GNU
inlining semantics for C compilation.

This is motivated by https://github.com/microsoft/STL/issues/2520.

Differential Revision: https://reviews.llvm.org/D139749
Reviewed By: fsb4000




More information about the All-commits mailing list