[PATCH] D152843: Switch magic numbers to library functions in fixup
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 26 13:29:46 PDT 2023
arsenm accepted this revision.
arsenm added inline comments.
This revision is now accepted and ready to land.
================
Comment at: llvm/lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp:202
Ctx.reportError(Fixup.getLoc(), "fixup value out of range");
- if (Value & 0x3)
+ if (!isAligned(Align{4}, Value))
Ctx.reportError(Fixup.getLoc(), "fixup must be 4-byte aligned");
----------------
I'm mostly surprised by the parameter ordering of isAligned, I'd expect the alignment value to be the second argument
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152843/new/
https://reviews.llvm.org/D152843
More information about the llvm-commits
mailing list