mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Reference-count inlined functions to keep them alive until we emit debug
info for them and generally clean up the inline scope handling a bit. Fix the debug scope handling for all clients of SILCloner, especially the SIL-level spezializers and inliners. This also adds a ton of additional assertions that will ensure that future optimization passes won't mess with the debug info in a way that could confuse the LLVM backend. Swift SVN r18984
This commit is contained in:
@@ -93,6 +93,9 @@ SILModule::SILModule(Module *SwiftModule)
|
||||
}
|
||||
|
||||
SILModule::~SILModule() {
|
||||
for (SILFunction *F : InlinedFunctions)
|
||||
F->decrementRefCount();
|
||||
|
||||
// Drop everything functions in this module reference.
|
||||
//
|
||||
// This is necessary since the functions may reference each other. We don't
|
||||
|
||||
Reference in New Issue
Block a user