Skip to content

Commit 49cab16

Browse files
committed
Properly do type assignment.
1 parent b42433f commit 49cab16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,7 @@ Type *SPIRVEmitIntrinsics::deduceElementTypeHelper(
768768
UnknownElemTypeI8);
769769
maybeAssignPtrType(Ty, I, RefTy, UnknownElemTypeI8);
770770
} else if (auto *Ref = dyn_cast<IntToPtrInst>(I)) {
771-
Ty = Ref->getDestTy();
771+
maybeAssignPtrType(Ty, I, Ref->getDestTy(), UnknownElemTypeI8);
772772
} else if (auto *Ref = dyn_cast<BitCastInst>(I)) {
773773
if (Type *Src = Ref->getSrcTy(), *Dest = Ref->getDestTy();
774774
isPointerTy(Src) && isPointerTy(Dest))

0 commit comments

Comments
 (0)