Introduce a SanitizerKind enum to LangOptions.
Use the bitmask to store the set of enabled sanitizers instead of a bitfield. On the negative side, it makes syntax for querying the set of enabled sanitizers a bit more clunky. On the positive side, we will be able to use SanitizerKind to eventually implement the new semantics for -fsanitize-recover= flag, that would allow us to make some sanitizers recoverable, and some non-recoverable. No functionality change. llvm-svn: 221558
This commit is contained in:
@@ -834,8 +834,8 @@ namespace {
|
||||
public:
|
||||
explicit CopyingValueRepresentation(CodeGenFunction &CGF)
|
||||
: CGF(CGF), OldSanOpts(CGF.SanOpts) {
|
||||
CGF.SanOpts.Bool = false;
|
||||
CGF.SanOpts.Enum = false;
|
||||
CGF.SanOpts.set(SanitizerKind::Bool, false);
|
||||
CGF.SanOpts.set(SanitizerKind::Enum, false);
|
||||
}
|
||||
~CopyingValueRepresentation() {
|
||||
CGF.SanOpts = OldSanOpts;
|
||||
|
||||
Reference in New Issue
Block a user