clover: fix llvm 3.5 build error
authorZoltan Gilian <zoltan.gilian@gmail.com>
Wed, 19 Aug 2015 09:56:08 +0000 (11:56 +0200)
committerFrancisco Jerez <currojerez@riseup.net>
Fri, 21 Aug 2015 11:18:10 +0000 (14:18 +0300)
commitdf5cdec1329507d5ac52a6d3db49c2608b9226bc
treea6ac6246eeb33c94f7352b75d3808651bf812e1e
parent7eda897bf05dc572dbe83f3a1075b773b0c65708
clover: fix llvm 3.5 build error

There is no MDOperand in llvm 3.5.

v2: Check if kernel metadata is present to avoid crash (EdB).
v3: Second attempt to avoid crash: switch off metadata query for llvm < 3.6.

Reviewed-by: Serge Martin (EdB) <edb+mesa@sigluy.net>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/gallium/state_trackers/clover/llvm/invocation.cpp