AMDGPU: Fix warning

llvm-svn: 293717
This commit is contained in:
Matt Arsenault 2017-01-31 23:48:37 +00:00
parent b15c06677c
commit 1575cb893c
1 changed files with 2 additions and 1 deletions

View File

@ -98,7 +98,8 @@ public:
// don't use flat addressing.
if (IsGraphicsShader)
return -1;
return ST->hasFlatAddressSpace() ? AMDGPUAS::FLAT_ADDRESS : -1;
return ST->hasFlatAddressSpace() ?
AMDGPUAS::FLAT_ADDRESS : AMDGPUAS::UNKNOWN_ADDRESS_SPACE;
}
unsigned getVectorSplitCost() { return 0; }