[all-commits] [llvm/llvm-project] 86a2fa: Rename the 'concept' variable in SymbolInterfaces.td

Sameer Rahmani via All-commits all-commits at lists.llvm.org
Fri Mar 26 13:19:38 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 86a2fa499879a5d097a5c08cd7111f1ea1cad396
      https://github.com/llvm/llvm-project/commit/86a2fa499879a5d097a5c08cd7111f1ea1cad396
  Author: Sameer Rahmani <lxsameer at gnu.org>
  Date:   2021-03-26 (Fri, 26 Mar 2021)

  Changed paths:
    M mlir/include/mlir/IR/SymbolInterfaces.td

  Log Message:
  -----------
  Rename the 'concept' variable in  SymbolInterfaces.td

`concept` is a reserved keyword in C++20, it can't be used as a variable name.
Here is an example of the failure:

```
      auto *concept = getInterfaceFor(op);
            ^
include/mlir/IR/SymbolInterfaces.h.inc:156:12: error: expected expression [clang-diagnostic-error]
      if (!concept)
           ^
```

Reviewed By: mehdi_amini

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




More information about the All-commits mailing list