mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Don't rerun diagnostic passes on deserialized SIL.
This commit is contained in:
@@ -944,6 +944,10 @@ namespace {
|
||||
class AllocBoxToStack : public SILFunctionTransform {
|
||||
/// The entry point to the transformation.
|
||||
void run() override {
|
||||
// Don't rerun on deserialized functions. Nothing should have changed.
|
||||
if (getFunction()->wasDeserializedCanonical())
|
||||
return;
|
||||
|
||||
AllocBoxToStackState pass(this);
|
||||
for (auto &BB : *getFunction()) {
|
||||
for (auto &I : BB)
|
||||
|
||||
Reference in New Issue
Block a user