[PATCH] D68703: [llvm-exegesis] Ensure that ExecutableFunction are aligned.
Guillaume Chatelet via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 9 06:42:39 PDT 2019
gchatelet added inline comments.
================
Comment at: llvm/tools/llvm-exegesis/lib/Assembler.cpp:311
+ const auto FunctionAddress = ExecEngine->getFunctionAddress(FunctionID);
+ assert((FunctionAddress & (kFunctionAlignment.value() - 1)) == 0 &&
+ "function is not properly aligned");
----------------
`assert(isAligned(FunctionAddress, kFunctionAlignment) && "function is not properly aligned");`
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D68703/new/
https://reviews.llvm.org/D68703
More information about the llvm-commits
mailing list