================
@@ -2755,9 +2757,18 @@
CodeGenFunction::CGCapturedStmtInfo::~CGCapturedStmtInfo() { }
CodeGenFunction::SanitizerScope::SanitizerScope(CodeGenFunction *CGF)
: CGF(CGF) {
assert(!CGF->IsSanitizerScope);
+ assert(!ApplyTrapDI);
CGF->IsSanitizerScope = true;
}
+CodeGenFunction::SanitizerScope::SanitizerScope(
+ CodeGenFunction *CGF, ArrayRef<SanitizerKind::SanitizerOrdinal> Ordinals,
+ SanitizerHandler Handler)
+ : SanitizerScope(CGF) {
----------------
vitalybuka wrote:
```suggestion
: SanitizerScope(CGF), ApplyTrapDI(std::make_unique<ApplyDebugLocation>(
*CGF, CGF->SanitizerAnnotateDebugInfo(Ordinals, Handler))) {
```
https://github.com/llvm/llvm-project/pull/141997
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits