Fixes issue 59413.
Details
Diff Detail
Unit Tests
Time | Test | |
---|---|---|
60,040 ms | x64 debian > libFuzzer.libFuzzer::minimize_crash.test |
Event Timeline
LG, with some nits though.
llvm/include/llvm/Transforms/Utils/ModuleUtils.h | ||
---|---|---|
88 | Nit: I don't think we need it to be a std::function, llvm::function_ref should do. | |
llvm/lib/Transforms/Utils/ModuleUtils.cpp | ||
147 | Nits: |
llvm/lib/Transforms/Utils/ModuleUtils.cpp | ||
---|---|---|
147 | If you create the new one when the old one still exists, you get "@llvm.used0" which is wrong. Avoiding reordering would require finding the neighbor global |
llvm/lib/Transforms/Utils/ModuleUtils.cpp | ||
---|---|---|
147 | I remembered takeName exists, so managed to fix this |
Nit: I don't think we need it to be a std::function, llvm::function_ref should do.