llvm.org GIT mirror llvm / e16fa98
Remove a check for an illegal condition. Bitcasts can't be between address spaces anymore. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199253 91177308-0d34-0410-b5e6-96231b3b80d8 Matt Arsenault 6 years ago
1 changed file(s) with 0 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
17961796 Type *DstElTy = DstPTy->getElementType();
17971797 Type *SrcElTy = SrcPTy->getElementType();
1799 // If the address spaces don't match, don't eliminate the bitcast, which is
1800 // required for changing types.
1801 if (SrcPTy->getAddressSpace() != DstPTy->getAddressSpace())
1802 return 0;
18041799 // If we are casting a alloca to a pointer to a type of the same
18051800 // size, rewrite the allocation instruction to allocate the "right" type.
18061801 // There is no need to modify malloc calls because it is their bitcast that