R600: Fix segfault in R600TextureIntrinsicReplacer
authorTom Stellard <thomas.stellard@amd.com>
Thu, 5 Sep 2013 18:37:45 +0000 (18:37 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Thu, 5 Sep 2013 18:37:45 +0000 (18:37 +0000)
commit624741fded4ec4c94a9328d9949729b051d261d4
tree74c15cc4154941740ba169777b968aafb9d8fa8e
parent7cfed2113c4e87f15e566ca67b5cc02e6a99f06d
R600: Fix segfault in R600TextureIntrinsicReplacer

This pass was segfaulting when it ran into a non-intrinsic function
call.  Function calls are not supported, so now instead of segfaulting,
we will get an assertion failure with a nice error message.

I'm not sure how to test this using lit.

llvm-svn: 190076
llvm/lib/Target/R600/R600TextureIntrinsicsReplacer.cpp