We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7b1ab7c + e88e93c commit b4e6044Copy full SHA for b4e6044
lib/SIL/SILFunction.cpp
@@ -16,6 +16,7 @@
16
#include "swift/SIL/SILInstruction.h"
17
#include "swift/SIL/SILArgument.h"
18
#include "swift/SIL/CFG.h"
19
+#include "swift/SIL/PrettyStackTrace.h"
20
#include "swift/AST/GenericEnvironment.h"
21
#include "llvm/ADT/Optional.h"
22
#include "llvm/Support/CommandLine.h"
@@ -64,6 +65,7 @@ SILFunction *SILFunction::create(
64
65
llvm::StringMapEntry<SILFunction*> *entry = nullptr;
66
if (!name.empty()) {
67
entry = &*M.FunctionTable.insert(std::make_pair(name, nullptr)).first;
68
+ PrettyStackTraceSILFunction trace("creating", entry->getValue());
69
assert(!entry->getValue() && "function already exists");
70
name = entry->getKey();
71
}
0 commit comments