Skip to content
Open
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions lib/SPIRV/SPIRVWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -856,10 +856,6 @@ SPIRVType *LLVMToSPIRVBase::transScavengedType(Value *V) {
SPIRVEC_UnsupportedVarArgFunction);

SPIRVType *RT = transType(FnTy->getReturnType());
if (M->getTargetTriple().getVendor() == Triple::VendorType::AMD)
if (F->getReturnType()->isPtrOrPtrVectorTy())
RT = transType(F->getReturnType()->getWithNewType(
PointerType::get(F->getContext(), SPIRAS_Constant)));

std::vector<SPIRVType *> PT;
for (Argument &Arg : F->args()) {
Expand Down
Loading