[clang] [CIR] Initial support for sanitizer attributes (PR #220625)
Henrich Lauko via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 3 01:53:37 PDT 2026
================
@@ -55,7 +55,7 @@ bool isCXXABIAttributeLegal(const mlir::TypeConverter &tc,
// can have a data member/method.
if (isa<mlir::DenseArrayAttr, mlir::FloatAttr, mlir::UnitAttr,
mlir::StringAttr, mlir::IntegerAttr, mlir::SymbolRefAttr,
- cir::AnnotationAttr>(attr))
+ cir::AnnotationAttr, cir::SanitizeAttr>(attr))
----------------
xlauko wrote:
Use `let canHaveIllegalCXXABIType = 0;` on the `CIR_SanitizeAttr` instead, this `isa` is a legacy path.
https://github.com/llvm/llvm-project/pull/220625
More information about the cfe-commits
mailing list