[PATCH] D119604: AttributorAttributes: avoid a crashing on bad alignments
James Y Knight via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 23 05:46:25 PST 2022
jyknight accepted this revision.
jyknight added a comment.
It's not UB to provide invalid alignments to aligned_alloc, but that's not something the langref covers.
This change avoids using that invalid alignment on the LLVM-side, avoiding turning defined C-side invalid alignment into a crash/UB on the LLVM side.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D119604/new/
https://reviews.llvm.org/D119604
More information about the llvm-commits
mailing list