[all-commits] [llvm/llvm-project] 52d79b: [mlir][llvm] Fix compiler error on GCC 9

Daniil Dudkin via All-commits all-commits at lists.llvm.org
Fri May 27 05:34:25 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 52d79b04b2628d21a328f331428f980a5ef3e2f0
      https://github.com/llvm/llvm-project/commit/52d79b04b2628d21a328f331428f980a5ef3e2f0
  Author: Daniil Dudkin <d.dudkin at partner.samsung.com>
  Date:   2022-05-27 (Fri, 27 May 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/LLVMIR/LLVMAttrDefs.td
    M mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
    M mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp

  Log Message:
  -----------
  [mlir][llvm] Fix compiler error on GCC 9

This patch fixes the following compiler error:

    error: declaration of ‘mlir::LLVM::cconv::CConv mlir::LLVM::detail::CConvAttrStorage::CConv’ changes meaning of ‘CConv’ [-fpermissive]

CConv as a member variable name was shadowing CConv as an enumeration,
hence the compiler error.

Reviewed By: ftynse, alexbatashev

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




More information about the All-commits mailing list