Skip to content

Commit 2df8733

Browse files
authored
AMDGPUOCL12Adapter: Do not create wrappers for constant address space. (llvm-mirror#6)
1 parent 38c948f commit 2df8733

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Target/AMDGPU/AMDGPUOCL12Adapter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ static bool isNonDefaultAddrSpacePtr(Type *Ty) {
6868
StructType* StrType = dyn_cast<StructType>(PtrType->getElementType());
6969
if(StrType && StrType->isOpaque())
7070
return false;
71-
return (PtrType->getAddressSpace() != 4);
71+
return (PtrType->getAddressSpace() != 4 && PtrType->getAddressSpace() != 2);
7272
}
7373

7474
/// \brief Check whether the Function signature has any of the

0 commit comments

Comments
 (0)