[PATCH] D117923: BuildLibCalls: add allocalign attributes for memalign and aligned_alloc

James Y Knight via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 10 15:28:29 PST 2022


jyknight requested changes to this revision.
jyknight added inline comments.
This revision now requires changes to proceed.


================
Comment at: llvm/lib/Transforms/Utils/BuildLibCalls.cpp:228
+static bool setAlignedAllocParam(Function &F, unsigned ArgNo) {
+  if (F.hasFnAttribute(Attribute::AllocAlign)) {
+    return false;
----------------
Just noticed: this was supposed to be hasParamAttribute, not hasFnAttribute.


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