================
@@ -522,6 +522,23 @@ void CIRGenFunction::startFunction(GlobalDecl gd, QualType
returnType,
const auto *fd = dyn_cast_or_null<FunctionDecl>(d);
curFuncDecl = (d ? d->getNonClosureContext() : nullptr);
+ if (d) {
+ SanitizerMask noSanitizeMask;
+ for (const auto *attr : d->specific_attrs<NoSanitizeAttr>())
+ noSanitizeMask |= attr->getMask();
+ sanOpts.Mask &= ~noSanitizeMask;
+
+ assert(!cir::MissingFeatures::sanitizers());
+ }
+
+ llvm::SmallVector<cir::SanitizeKind> sanitizerKinds;
+ if (sanOpts.has(SanitizerKind::Address))
----------------
erichkeane wrote:
We don't intend to do these like this, do we? IMO, we need a function to do
these translations, and figure out how to do them in a way that isn't a
constant check/set kinda thing like this.
https://github.com/llvm/llvm-project/pull/220625
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits