[llvm] [BOLT] Do not fail in case of instrumentation binary without fini & fini_array & instrumentation-sleep-time>0 (PR #170086)
Peter Waller via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 1 01:05:13 PST 2025
================
@@ -1616,9 +1621,14 @@ Error RewriteInstance::updateRtFiniReloc() {
if (!RT || !RT->getRuntimeFiniAddress())
return Error::success();
- if (!BC->FiniArrayAddress || !BC->FiniArraySize)
+ if (!BC->FiniArrayAddress || !BC->FiniArraySize) {
+ // it is not mandatory to have finalization hooks if we have
+ // InstrumentationSleepTime>0
----------------
peterwaller-arm wrote:
As above.
https://github.com/llvm/llvm-project/pull/170086
More information about the llvm-commits
mailing list