================
@@ -0,0 +1,58 @@
+//===- CallConvLowering.cpp - Rewrites functions according to call convs 
--===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM 
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "mlir/IR/BuiltinOps.h"
+#include "mlir/Pass/Pass.h"
+#include "clang/CIR/Dialect/IR/CIRDialect.h"
+
+#define GEN_PASS_DEF_CALLCONVLOWERING
+#include "clang/CIR/Dialect/Passes.h.inc"
+
+namespace cir {
+
+struct CallConvLowering {
+  CallConvLowering(mlir::ModuleOp module) : module(module) {}
----------------
Lancern wrote:

The name `module` conflicts with the C++20 keyword.

```suggestion
  CallConvLowering(mlir::ModuleOp modOp) : modOp(modOp) {}
```

https://github.com/llvm/llvm-project/pull/189613
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to