File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -2759,6 +2759,7 @@ CodeGenFunction::SanitizerScope::SanitizerScope(
2759
2759
assert (!CGF->IsSanitizerScope );
2760
2760
CGF->IsSanitizerScope = true ;
2761
2761
2762
+ assert (!this ->ApplyTrapDI );
2762
2763
this ->ApplyTrapDI =
2763
2764
new ApplyDebugLocation (*CGF, CGF->SanitizerAnnotateDebugInfo (Ordinals));
2764
2765
}
@@ -2767,6 +2768,7 @@ CodeGenFunction::SanitizerScope::~SanitizerScope() {
2767
2768
CGF->IsSanitizerScope = false ;
2768
2769
2769
2770
delete ((ApplyDebugLocation *)this ->ApplyTrapDI );
2771
+ this ->ApplyTrapDI = nullptr ;
2770
2772
}
2771
2773
2772
2774
void CodeGenFunction::InsertHelper (llvm::Instruction *I,
Original file line number Diff line number Diff line change @@ -599,7 +599,7 @@ class CodeGenFunction : public CodeGenTypeCache {
599
599
600
600
// ApplyDebugLocation is undeclared: CGDebugInfo.h is not #included in this
601
601
// header due to overhead (b384d6d6ccc8f4452cd7086061c657ce76b41224)
602
- void *ApplyTrapDI;
602
+ void *ApplyTrapDI = nullptr ;
603
603
604
604
public:
605
605
SanitizerScope (CodeGenFunction *CGF,
You can’t perform that action at this time.
0 commit comments