Merge pull request #7921 from devincoughlin/sil_sanitizer_options

This commit is contained in:
swift-ci
2017-03-06 10:37:03 -08:00
committed by GitHub
2 changed files with 17 additions and 6 deletions

View File

@@ -18,6 +18,7 @@
#ifndef SWIFT_AST_SILOPTIONS_H
#define SWIFT_AST_SILOPTIONS_H
#include "swift/Basic/Sanitizers.h"
#include "llvm/ADT/StringRef.h"
#include <string>
#include <climits>
@@ -122,6 +123,12 @@ public:
/// Assume that code will be executed in a single-threaded environment.
bool AssumeSingleThreaded = false;
/// Indicates which sanitizer is turned on.
SanitizerKind Sanitize : 2;
SILOptions() : Sanitize(SanitizerKind::None) {}
};
} // end namespace swift