mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Fix a use-after-free in SIL printSILLocation().
<rdar://problem/25727821>
This commit is contained in:
@@ -669,7 +669,8 @@ public:
|
||||
// Print inlined-at location, if any.
|
||||
if (DS) {
|
||||
SILFunction *InlinedF = DS->getInlinedFunction();
|
||||
for (auto *CS : reversed(DS->flattenedInlineTree())) {
|
||||
auto InlineScopes = DS->flattenedInlineTree();
|
||||
for (auto *CS : reversed(InlineScopes)) {
|
||||
*this << ": ";
|
||||
if (InlinedF) {
|
||||
*this << demangleSymbol(InlinedF->getName());
|
||||
|
||||
Reference in New Issue
Block a user