https://bugs.freedesktop.org/show_bug.cgi?id=105218
--- Comment #6 from Timothy Arceri t_arceri@yahoo.com.au --- (In reply to Timothy Arceri from comment #5)
Ok built it correctly this time.
No crash with Mesa git and LLVM 7 the sample runs fine on my RX580. Possible there is a bug in LLVM 6.
Ok I tested the LLVM 6.0.0 release with git master and that worked fine for me too.