[all-commits] [llvm/llvm-project] 70ff6f: AttributorAttributes: avoid a crashing on bad alig...
Augie Fackler via All-commits
all-commits at lists.llvm.org
Wed Feb 23 08:47:17 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 70ff6fbeb9b5acb4995dc42286954b762d0937fd
https://github.com/llvm/llvm-project/commit/70ff6fbeb9b5acb4995dc42286954b762d0937fd
Author: Augie Fackler <augie at google.com>
Date: 2022-02-23 (Wed, 23 Feb 2022)
Changed paths:
M llvm/lib/Transforms/IPO/AttributorAttributes.cpp
M llvm/test/Transforms/Attributor/heap_to_stack.ll
Log Message:
-----------
AttributorAttributes: avoid a crashing on bad alignments
Prior to this change, LLVM would attempt to optimize an
aligned_alloc(33, ...) call to the stack. This flunked an assertion when
trying to emit the alloca, which crashed LLVM. Avoid that with extra
checks.
Differential Revision: https://reviews.llvm.org/D119604
More information about the All-commits
mailing list