Skip to content

Commit 1df8fe4

Browse files
committed
Revert "Replace manual ApplyDebugLocation annotation with SanitizerDebugLocation"
This reverts commit ff5ffbf. Already in sanitizerscope
1 parent ff5ffbf commit 1df8fe4

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

clang/lib/CodeGen/CGClass.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2817,8 +2817,9 @@ void CodeGenFunction::EmitVTablePtrCheckForCall(const CXXRecordDecl *RD,
28172817
RD = LeastDerivedClassWithSameLayout(RD);
28182818

28192819
auto [Ordinal, _] = SanitizerInfoFromCFICheckKind(TCK);
2820-
SanitizerDebugLocation SanScope(this, {Ordinal},
2821-
SanitizerHandler::CFICheckFail);
2820+
ApplyDebugLocation ApplyTrapDI(
2821+
*this,
2822+
SanitizerAnnotateDebugInfo(Ordinal, SanitizerHandler::CFICheckFail));
28222823

28232824
EmitVTablePtrCheck(RD, VTable, TCK, Loc);
28242825
}
@@ -2843,8 +2844,9 @@ void CodeGenFunction::EmitVTablePtrCheckForCast(QualType T, Address Derived,
28432844
ClassDecl = LeastDerivedClassWithSameLayout(ClassDecl);
28442845

28452846
auto [Ordinal, _] = SanitizerInfoFromCFICheckKind(TCK);
2846-
SanitizerDebugLocation SanScope(this, {Ordinal},
2847-
SanitizerHandler::CFICheckFail);
2847+
ApplyDebugLocation ApplyTrapDI(
2848+
*this,
2849+
SanitizerAnnotateDebugInfo(Ordinal, SanitizerHandler::CFICheckFail));
28482850

28492851
llvm::BasicBlock *ContBlock = nullptr;
28502852

0 commit comments

Comments
 (0)