diff options
Diffstat (limited to 'clang/lib/AST/Decl.cpp')
-rw-r--r-- | clang/lib/AST/Decl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/Decl.cpp b/clang/lib/AST/Decl.cpp index 71ea7aa91de..638ed8d9b08 100644 --- a/clang/lib/AST/Decl.cpp +++ b/clang/lib/AST/Decl.cpp @@ -3627,7 +3627,7 @@ void RecordDecl::LoadFieldsFromExternalStorage() const { bool RecordDecl::mayInsertExtraPadding(bool EmitRemark) const { ASTContext &Context = getASTContext(); - if (!Context.getLangOpts().Sanitize.Address || + if (!Context.getLangOpts().Sanitize.has(SanitizerKind::Address) || !Context.getLangOpts().Sanitize.SanitizeAddressFieldPadding) return false; const auto &Blacklist = Context.getSanitizerBlacklist(); |