Skip to content

Commit 8061ddf

Browse files
authored
Merge pull request #65206 from adrian-prantl/more-source-compat
SILgenPattern: Mark location used by forwardIntoSubtree as autogenera…
2 parents c1d5118 + b6be6ad commit 8061ddf

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

lib/SIL/Verifier/SILVerifier.cpp

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,15 @@ static llvm::cl::opt<bool> ContinueOnFailure("verify-continue-on-failure",
6969
static llvm::cl::opt<bool> DumpModuleOnFailure("verify-dump-module-on-failure",
7070
llvm::cl::init(false));
7171

72-
static llvm::cl::opt<bool> VerifyDIHoles(
73-
"verify-di-holes",
74-
llvm::cl::init(true));
72+
// This verification is affects primarily debug info and end users don't derive
73+
// a benefit from seeing its results.
74+
static llvm::cl::opt<bool> VerifyDIHoles("verify-di-holes", llvm::cl::init(
75+
#ifndef NDEBUG
76+
true
77+
#else
78+
false
79+
#endif
80+
));
7581

7682
static llvm::cl::opt<bool> SkipConvertEscapeToNoescapeAttributes(
7783
"verify-skip-convert-escape-to-noescape-attributes", llvm::cl::init(false));

lib/SILGen/SILGenPattern.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,7 @@ static ConsumableManagedValue
741741
forwardIntoSubtree(SILGenFunction &SGF, SILLocation loc,
742742
CleanupStateRestorationScope &scope,
743743
ConsumableManagedValue outerCMV) {
744+
loc.markAutoGenerated();
744745
ManagedValue outerMV = outerCMV.getFinalManagedValue();
745746
if (!outerMV.hasCleanup()) return outerCMV;
746747

0 commit comments

Comments
 (0)