This is an archive of the discontinued LLVM Phabricator instance.

Do not include <alloca.h> unconditionally
ClosedPublic

Authored by arichardson on Nov 30 2022, 4:10 AM.

Details

Summary

Some systems (e.g. FreeBSD) do not provide this header. This commit fixes
building the testsuite on FreeBSD after c4c6c75c1ff888f47a203e5aeadc85b1d2aaa172

Event Timeline

arichardson created this revision.Nov 30 2022, 4:10 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 30 2022, 4:10 AM
arichardson requested review of this revision.Nov 30 2022, 4:10 AM
ro accepted this revision.Dec 7 2022, 6:31 AM

For good measure tested on sparcv9-sun-solaris2.11, amd64-pc-solaris2.11, and x86_64-pc-linux-gnu.

LGTM.

Sorry for the breakage.

This revision is now accepted and ready to land.Dec 7 2022, 6:31 AM
This revision was automatically updated to reflect the committed changes.