[Bugpoint] Do not create illegal function attribute combos
authorDavid Greene <dag@cray.com>
Mon, 28 Oct 2019 18:21:29 +0000 (13:21 -0500)
committerDavid Greene <dag@cray.com>
Mon, 16 Dec 2019 16:32:35 +0000 (10:32 -0600)
commit055aeb5275153ee61ccd59cab2987fdcaca73756
tree70ecdefcab61d079711e52ab77cafbd259604d71
parent69fcc6ecc15bd01b2ade9efc49315b2097f0da40
[Bugpoint] Do not create illegal function attribute combos

If a function requires optnone to trigger a crash, it must also have noline,
otherwise it will fail a verifier check.

Differential revision: https://reviews.llvm.org/D69522
llvm/test/BugPoint/attr-crash.ll [new file with mode: 0644]
llvm/tools/bugpoint/CrashDebugger.cpp