mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Audit all SILPasses to ensure that new instructions are never created
without a valid SILDebugScope. An assertion in IRGenSIL prevents future optimizations from regressing in this regard. Introducing SILBuilderWithScope and SILBuilderwithPostprocess to ease the transition. This patch is large, but mostly mechanical. <rdar://problem/18494573> Swift: Debugger is not stopping at the set breakpoint Swift SVN r22978
This commit is contained in:
@@ -54,7 +54,7 @@ findExtractPathFromAddressValueToLoad(SILValue Address, SILValue StoredValue,
|
||||
// Ok, at this point we know that we can construct our aggregate projections
|
||||
// from our list of address projections.
|
||||
SILValue LastExtract = StoredValue;
|
||||
SILBuilder Builder(Inst);
|
||||
SILBuilderWithScope<16> Builder(Inst);
|
||||
while (!ProjectionPath.empty()) {
|
||||
auto P = ProjectionPath.pop_back_val();
|
||||
if (ValueDecl *D = P.getDecl()) {
|
||||
@@ -404,7 +404,7 @@ forwardAddressValueToUncheckedAddrToLoad(SILValue Address,
|
||||
SILType OutputTy = UADCI->getType();
|
||||
bool OutputIsTrivial = OutputTy.isTrivial(Mod);
|
||||
|
||||
SILBuilder B(LI);
|
||||
SILBuilderWithScope<1> B(LI);
|
||||
SILValue CastValue;
|
||||
|
||||
// If the output is trivial, we have a trivial bit cast.
|
||||
|
||||
Reference in New Issue
Block a user