This is an archive of the discontinued LLVM Phabricator instance.

AttributorAttributes: avoid a crashing on bad alignments
AbandonedPublic

Authored by durin42 on Feb 23 2022, 11:17 AM.

Details

Summary

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.

This was previously D119604, but when I landed that I missed a test
change and it was broken (and I was AFK, so a colleague rolled it back
for me.)

Diff Detail

Event Timeline

durin42 created this revision.Feb 23 2022, 11:17 AM
durin42 requested review of this revision.Feb 23 2022, 11:17 AM
Herald added a reviewer: sstefan1. · View Herald Transcript
Herald added a reviewer: baziotis. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
durin42 abandoned this revision.Feb 23 2022, 11:20 AM

(going to reland under the old ID per a discussion, I'm new here)