[all-commits] [llvm/llvm-project] 4b36b2: [Support] Use C++11 attribute syntax for visibilit...

Tom Stellard via All-commits all-commits at lists.llvm.org
Thu Jul 6 10:31:25 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4b36b2c23cc628aad2b7749526f77abd7f85aaae
  Author: Tom Stellard <tstellar at redhat.com>
  Date:   2023-07-06 (Thu, 06 Jul 2023)

  Changed paths:
    M llvm/include/llvm/Support/Compiler.h
    M llvm/include/llvm/Transforms/Scalar/GVN.h
    M llvm/include/llvm/Transforms/Scalar/SROA.h
    M llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp

  Log Message:
  [Support] Use C++11 attribute syntax for visibility attributes

The gnu extension __attribute syntax cannot be mixed with the
C++11 alignas specifier, so in order to use visibility attributes on
classes that also use alignas, we need to use the C++11 standard syntax.

Also fix a few warnings introduced by this change.

Reviewed By: compnerd

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

More information about the All-commits mailing list