diff options
author | Enna1 <xumingjie.enna1@bytedance.com> | 2023-05-19 19:18:28 +0800 |
---|---|---|
committer | Enna1 <xumingjie.enna1@bytedance.com> | 2023-05-19 19:18:57 +0800 |
commit | e4e6c6510b183f478df48a92feb6ef1a5e20aa0a (patch) | |
tree | 4f11228f226505431ba714851003aab23ece5266 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 6a950422f3bcaf91b26ce6436c6658e503c5c87b (diff) | |
download | llvm-e4e6c6510b183f478df48a92feb6ef1a5e20aa0a.zip llvm-e4e6c6510b183f478df48a92feb6ef1a5e20aa0a.tar.gz llvm-e4e6c6510b183f478df48a92feb6ef1a5e20aa0a.tar.bz2 |
[IR] Adds Instruction::setNoSanitizeMetadata()
This patch adds a new method setNoSanitizeMetadata() for Instruction, and use it in SanitizerMetadata and SanitizerCoverage.
Reviewed By: nickdesaulniers, MaskRay
Differential Revision: https://reviews.llvm.org/D150632
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index f6f92eb..5c8b882 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -2541,7 +2541,7 @@ void CodeGenFunction::InsertHelper(llvm::Instruction *I, llvm::BasicBlock::iterator InsertPt) const { LoopStack.InsertHelper(I); if (IsSanitizerScope) - CGM.getSanitizerMetadata()->disableSanitizerForInstruction(I); + I->setNoSanitizeMetadata(); } void CGBuilderInserter::InsertHelper( |