[PATCH] D128092: [BOLT] Fix for missing entry offset
Rafael Auler via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 17 13:15:09 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG9d5e6ccd9bba: [BOLT] Fix for missing entry offset (authored by rafauler).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D128092/new/
https://reviews.llvm.org/D128092
Files:
bolt/lib/Passes/ValidateInternalCalls.cpp
Index: bolt/lib/Passes/ValidateInternalCalls.cpp
===================================================================
--- bolt/lib/Passes/ValidateInternalCalls.cpp
+++ bolt/lib/Passes/ValidateInternalCalls.cpp
@@ -106,6 +106,7 @@
// block.
std::vector<std::unique_ptr<BinaryBasicBlock>> NewBBs;
NewBBs.emplace_back(Function.createBasicBlock());
+ NewBBs.back()->setOffset(0);
NewBBs.back()->addInstructions(MovedInsts.begin(), MovedInsts.end());
BB.moveAllSuccessorsTo(NewBBs.back().get());
Function.insertBasicBlocks(&BB, std::move(NewBBs));
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128092.438027.patch
Type: text/x-patch
Size: 603 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220617/0233b907/attachment.bin>
More information about the llvm-commits
mailing list