R600: Fix asserts related to constant initializers
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Sat, 14 Jun 2014 04:26:05 +0000 (04:26 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Sat, 14 Jun 2014 04:26:05 +0000 (04:26 +0000)
commitaac455af997edb35b244a8a19af99a64d9ddc93e
tree281d0aeb855bc4a7b62f8422dc4712b5250198a0
parent15f474c925b76448b03b1e0b4124b41d0b159d94
R600: Fix asserts related to constant initializers

This would assert if a constant address space was extern
and therefore didn't have an initializer. If the initializer
was undef, it would hit the unreachable unhandled initializer case.

An extern global should never really occur since we don't have
machine linking, but bugpoint likes to remove initializers.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210967 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/R600/AMDGPUISelLowering.cpp
test/CodeGen/R600/no-initializer-constant-addrspace.ll [new file with mode: 0644]