mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
StringOptimization: preserve debug scopes when creating calls to the string initializer
This commit is contained in:
@@ -681,7 +681,7 @@ SILValue StringOptimization::copyValue(SILValue value, SILInstruction *before) {
|
||||
/// Creates a call to a string initializer.
|
||||
ApplyInst *StringOptimization::createStringInit(StringRef str,
|
||||
SILInstruction *beforeInst) {
|
||||
SILBuilder builder(beforeInst);
|
||||
SILBuilderWithScope builder(beforeInst);
|
||||
SILLocation loc = beforeInst->getLoc();
|
||||
SILModule &module = beforeInst->getFunction()->getModule();
|
||||
ASTContext &ctxt = module.getASTContext();
|
||||
|
||||
Reference in New Issue
Block a user