We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 778db74 commit fdaa369Copy full SHA for fdaa369
1 file changed
lib/DXIL/DxilOperations.cpp
@@ -6590,10 +6590,16 @@ Type *OP::GetFourI32Type() const { return m_pFourI32Type; }
6590
Type *OP::GetFourI16Type() const { return m_pFourI16Type; }
6591
6592
bool OP::IsResRetType(llvm::Type *Ty) {
6593
+ if (!Ty->isStructTy())
6594
+ return false;
6595
for (Type *ResTy : m_pResRetType) {
6596
if (Ty == ResTy)
6597
return true;
6598
}
6599
+ StructType *ST = cast<StructType>(Ty);
6600
+ if (!ST->hasName() || ST->getNumContainedTypes() < 2)
6601
6602
+ return Ty == GetResRetType(ST->getContainedType(0));
6603
return false;
6604
6605
0 commit comments