diff options
author | Vedant Kumar <vsk@apple.com> | 2017-02-17 23:22:55 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2017-02-17 23:22:55 +0000 |
commit | 18348ea9b9d991ce70664187576a13f773496144 (patch) | |
tree | 4c7a08ca634546168477437770a762bbeb0e126d /clang/lib/CodeGen/CodeGenFunction.h | |
parent | f8346550bf967fb1c1767de17b602fae33452587 (diff) | |
download | bcm5719-llvm-18348ea9b9d991ce70664187576a13f773496144.tar.gz bcm5719-llvm-18348ea9b9d991ce70664187576a13f773496144.zip |
[ubsan] Pass a set of checks to skip to EmitTypeCheck() (NFC)
CodeGenFunction::EmitTypeCheck accepts a bool flag which controls
whether or not null checks are emitted. Make this a bit more flexible by
changing the bool to a SanitizerSet.
Needed for an upcoming change which deals with a scenario in which we
only want to emit null checks.
llvm-svn: 295514
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index b830df73ca7..09f17638509 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -2252,7 +2252,7 @@ public: /// appropriate size and alignment for an object of type \p Type. void EmitTypeCheck(TypeCheckKind TCK, SourceLocation Loc, llvm::Value *V, QualType Type, CharUnits Alignment = CharUnits::Zero(), - bool SkipNullCheck = false); + SanitizerSet SkippedChecks = SanitizerSet()); /// \brief Emit a check that \p Base points into an array object, which /// we can access at index \p Index. \p Accessed should be \c false if we |