Index: lib/IR/Instructions.cpp =================================================================== --- lib/IR/Instructions.cpp +++ lib/IR/Instructions.cpp @@ -2553,11 +2553,8 @@ } else if (DestTy->isPointerTy()) { // Casting to pointer if (SrcTy->isPointerTy()) { // Casting from pointer return true; - } else if (SrcTy->isIntegerTy()) { // Casting from integral - return true; - } else { // Casting from something else - return false; - } + } else + return SrcTy->isIntegerTy(); // Casting from integral } else if (DestTy->isX86_MMXTy()) { if (SrcTy->isVectorTy()) { return DestBits == SrcBits; // 64-bit vector to MMX