[clang] [CIR] Upstream TypeInfo attribute (PR #159426)
Henrich Lauko via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 18 22:17:30 PDT 2025
================
@@ -2741,6 +2739,20 @@ LogicalResult cir::AtomicCmpXchg::verify() {
return success();
}
+//===----------------------------------------------------------------------===//
+// TypeInfoAttr
+//===----------------------------------------------------------------------===//
+
+LogicalResult cir::TypeInfoAttr::verify(
+ ::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError,
+ ::mlir::Type type, ::mlir::ArrayAttr typeinfoData) {
+
+ if (cir::ConstRecordAttr::verify(emitError, type, typeinfoData).failed())
----------------
xlauko wrote:
```suggestion
::mlir::Type type, ::mlir::ArrayAttr typeInfoData) {
if (cir::ConstRecordAttr::verify(emitError, type, typeInfoData).failed())
```
https://github.com/llvm/llvm-project/pull/159426
More information about the cfe-commits
mailing list