[PATCH] D117923: BuildLibCalls: add allocalign attributes for memalign and aligned_alloc
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 11 14:31:50 PST 2022
nikic accepted this revision.
nikic added a comment.
LGTM
================
Comment at: llvm/lib/Transforms/Utils/BuildLibCalls.cpp:228
+static bool setAlignedAllocParam(Function &F, unsigned ArgNo) {
+ if (F.hasParamAttribute(ArgNo, Attribute::AllocAlign)) {
+ return false;
----------------
nit: Drop braces for single-line if.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D117923/new/
https://reviews.llvm.org/D117923
More information about the llvm-commits
mailing list