Skip to content

Commit c74fa20

Browse files
authored
Revert "[Clang][CodeGen] Introduce the AllocToken SanitizerKind" (#162413)
Reverts #162098 Reason: buildbot breakage (see #162098 (comment))
1 parent d9a5680 commit c74fa20

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

clang/include/clang/Basic/Sanitizers.def

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,9 +195,6 @@ SANITIZER_GROUP("bounds", Bounds, ArrayBounds | LocalBounds)
195195
// Scudo hardened allocator
196196
SANITIZER("scudo", Scudo)
197197

198-
// AllocToken
199-
SANITIZER("alloc-token", AllocToken)
200-
201198
// Magic group, containing all sanitizers. For example, "-fno-sanitize=all"
202199
// can be used to disable all the sanitizers.
203200
SANITIZER_GROUP("all", All, ~SanitizerMask())

clang/lib/CodeGen/CodeGenFunction.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -846,8 +846,6 @@ void CodeGenFunction::StartFunction(GlobalDecl GD, QualType RetTy,
846846
Fn->addFnAttr(llvm::Attribute::SanitizeNumericalStability);
847847
if (SanOpts.hasOneOf(SanitizerKind::Memory | SanitizerKind::KernelMemory))
848848
Fn->addFnAttr(llvm::Attribute::SanitizeMemory);
849-
if (SanOpts.has(SanitizerKind::AllocToken))
850-
Fn->addFnAttr(llvm::Attribute::SanitizeAllocToken);
851849
}
852850
if (SanOpts.has(SanitizerKind::SafeStack))
853851
Fn->addFnAttr(llvm::Attribute::SafeStack);

0 commit comments

Comments
 (0)