================
@@ -2817,7 +2817,9 @@ void CodeGenFunction::EmitVTablePtrCheckForCall(const
CXXRecordDecl *RD,
RD = LeastDerivedClassWithSameLayout(RD);
auto [Ordinal, _] = SanitizerInfoFromCFICheckKind(TCK);
- ApplyDebugLocation ApplyTrapDI(*this, SanitizerAnnotateDebugInfo(Ordinal));
+ ApplyDebugLocation ApplyTrapDI(
----------------
thurstond wrote:
I checked again and found that all callers to EmitVTablePtrCheck
(EmitVTablePtrCheckForCall, EmitVTablePtrCheckForCast) establish
SanitizerDebugLocation. Hence, we don't need nested SanitizerDebugLocation;
instead, I removed SanitizerDebugLocation from EmitVTablePtrCheck:
https://github.com/llvm/llvm-project/pull/141997/commits/aead894277f56e16bb63b5f9e40b6e6dfcebb01a
https://github.com/llvm/llvm-project/pull/141997
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits