llvm.org GIT mirror llvm / 6f6f512
Fix a bug in my previous patch git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36857 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 13 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
55995599 cast(DestTy)->getBitWidth()) {
56005600 Value *RHSOp = 0;
56015601 if (Constant *RHSC = dyn_cast(ICI.getOperand(1))) {
5602 RHSOp = ConstantExpr::getPtrToInt(RHSC, SrcTy);
5602 RHSOp = ConstantExpr::getIntToPtr(RHSC, SrcTy);
56035603 } else if (PtrToIntInst *RHSC = dyn_cast(ICI.getOperand(1))) {
56045604 RHSOp = RHSC->getOperand(0);
56055605 // If the pointer types don't match, insert a bitcast.