Skip to content

Commit db2ad4a

Browse files
committed
deterministic order of erasing functions
1 parent 0de9070 commit db2ad4a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/SYCLLowerIR/LowerWGLocalMemory.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ static bool inlineGroupLocalMemoryFunc(Module &M) {
116116
assert(Result.isSuccess() && "inlining failed");
117117
}
118118
}
119+
if (F != ALMFunc)
120+
F->eraseFromParent();
119121
}
120-
for (auto *F : Visited)
121-
F->eraseFromParent();
122122

123123
return !Visited.empty();
124124
}

0 commit comments

Comments
 (0)