clover: Re-order includes in invocation.cpp to fix build
authorTom Stellard <thomas.stellard@amd.com>
Tue, 19 Jul 2016 15:07:23 +0000 (15:07 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Wed, 20 Jul 2016 21:15:53 +0000 (21:15 +0000)
commit106946153fb237e0867d65d53fb3a8461f3a13ee
treea8cf457f289e702271ecc1743bfcf98a15bd813d
parenta73bf11a63ea93640c26b5701c533b06d3a6f3e9
clover: Re-order includes in invocation.cpp to fix build

The build was failing because the official CL headers have a few defines,
like: # define cl_khr_gl_sharing 1

Which have the same name as some class members of clang's OpenCLOptions class.
If we include the cl headers first, this breaks the build because the member
names of this class are replaced by the literal 1.

Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Reviewed-by: Vedran Miletić <vedran@miletic.net>
src/gallium/state_trackers/clover/llvm/invocation.cpp