swr: don't use AttributeSet with llvm >= 5
authorTim Rowley <timothy.o.rowley@intel.com>
Thu, 11 May 2017 15:56:20 +0000 (10:56 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Wed, 17 May 2017 16:24:46 +0000 (11:24 -0500)
commitdce41f7728913aecaecbc318889cabd6dda9d8db
tree3b8f857eb55b8d462303dab5be2bd995ed81a4ef
parentbfc0c23843008fd510afa263ebe371bef3346445
swr: don't use AttributeSet with llvm >= 5

This change fixes the build break with llvm-svn.

r301981 of llvm-svn made add/remove of function attributes
use AttrBuilder instead of AttributeList.

Tested with llvm-3.9, llvm-4.0, llvm-svn.

Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/swr_shader.cpp