================ Comment at: lib/IR/Constants.cpp:1510 @@ +1509,3 @@ + return getBitCast(S, Ty); +} + ---------------- Maybe this function can be fused within getPointerCast in order to support there the case of pointers with different address spaces. http://llvm-reviews.chandlerc.com/D2205