Delete a directory that wasn't supposed to be checked in yet.
[oota-llvm.git] / lib / Transforms / Scalar / SROA.cpp
index 71c62257e7f64b85aee702b23f59d967147b3ebe..adf7e7af83ed674d841fccdfee4d6f559eca9ee2 100644 (file)
@@ -2763,9 +2763,9 @@ private:
                               : II.getRawDest()->getType();
     if (!EmitMemCpy) {
       if (IsVectorElement)
-        OtherPtrTy = VecTy->getElementType()->getPointerTo();
+        OtherPtrTy = VecTy->getElementType()->getPointerTo(OtherPtrTy);
       else if (IntTy && !IsWholeAlloca)
-        OtherPtrTy = SubIntTy->getPointerTo();
+        OtherPtrTy = SubIntTy->getPointerTo(OtherPtrTy);
       else
         OtherPtrTy = NewAI.getType();
     }