aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorAlexey Samsonov <vonosmas@gmail.com>2014-10-30 19:33:44 +0000
committerAlexey Samsonov <vonosmas@gmail.com>2014-10-30 19:33:44 +0000
commit035462c1cff42375079dd55fdb5a8a93cec6aacb (patch)
tree34918cb2ae5b7cc07871c957027fb2b15897891e /clang/lib/CodeGen/CodeGenFunction.h
parentcf8f7a10b7d60c8999fc6035ece84692ae5bc21f (diff)
downloadllvm-035462c1cff42375079dd55fdb5a8a93cec6aacb.zip
llvm-035462c1cff42375079dd55fdb5a8a93cec6aacb.tar.gz
llvm-035462c1cff42375079dd55fdb5a8a93cec6aacb.tar.bz2
Get rid of SanitizerOptions::Disabled global. NFC.
SanitizerOptions is not even a POD now, so having global variable of this type, is not nice. Instead, provide a regular constructor and clear() method, and let each CodeGenFunction has its own copy of SanitizerOptions it uses. llvm-svn: 220920
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index eb3e656..5faf2ac 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -249,7 +249,7 @@ public:
unsigned char BoundsChecking;
/// \brief Sanitizer options to use for this function.
- const SanitizerOptions *SanOpts;
+ SanitizerOptions SanOpts;
/// \brief True if CodeGen currently emits code implementing sanitizer checks.
bool IsSanitizerScope;