https://github.com/fmayer closed
https://github.com/llvm/llvm-project/pull/149430
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/thurstond approved this pull request.
https://github.com/llvm/llvm-project/pull/149430
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -6482,7 +6475,11 @@ llvm::DILocation
*CodeGenFunction::SanitizerAnnotateDebugInfo(
SanitizerHandler Handler) {
llvm::DILocation *CheckDebugLoc = Builder.getCurrentDebugLocation();
auto *DI = getDebugInfo();
- if (!DI)
+ if (!DI || !CheckDebugLoc)
+return Check
@@ -6482,7 +6475,11 @@ llvm::DILocation
*CodeGenFunction::SanitizerAnnotateDebugInfo(
SanitizerHandler Handler) {
llvm::DILocation *CheckDebugLoc = Builder.getCurrentDebugLocation();
auto *DI = getDebugInfo();
- if (!DI)
+ if (!DI || !CheckDebugLoc)
+return Check
@@ -6491,14 +6488,8 @@ llvm::DILocation
*CodeGenFunction::SanitizerAnnotateDebugInfo(
else
Label = SanitizerHandlerToCheckLabel(Handler);
- for (auto Ord : Ordinals) {
-// TODO: deprecate ClArrayBoundsPseudoFn
-if (((ClArrayBoundsPseudoFn && Ord == SanitizerKin
https://github.com/thurstond approved this pull request.
https://github.com/llvm/llvm-project/pull/149430
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -6491,14 +6488,8 @@ llvm::DILocation
*CodeGenFunction::SanitizerAnnotateDebugInfo(
else
Label = SanitizerHandlerToCheckLabel(Handler);
- for (auto Ord : Ordinals) {
-// TODO: deprecate ClArrayBoundsPseudoFn
-if (((ClArrayBoundsPseudoFn && Ord == SanitizerKin
@@ -6482,7 +6475,11 @@ llvm::DILocation
*CodeGenFunction::SanitizerAnnotateDebugInfo(
SanitizerHandler Handler) {
llvm::DILocation *CheckDebugLoc = Builder.getCurrentDebugLocation();
auto *DI = getDebugInfo();
- if (!DI)
+ if (!DI || !CheckDebugLoc)
+return Check