]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - opencl/llvm.git/commitdiff
OldPtr is llvm::Instruction. Remove unneeded cast<>.
authorJakub Staszak <kubastaszak@gmail.com>
Mon, 22 Jul 2013 22:10:43 +0000 (22:10 +0000)
committerJakub Staszak <kubastaszak@gmail.com>
Mon, 22 Jul 2013 22:10:43 +0000 (22:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186880 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/SROA.cpp

index 021859366590849d3fff9b6923b07db2cfa1965f..10ae15334ee087017cd88ba99f5a7a40905f2513 100644 (file)
@@ -2540,7 +2540,7 @@ private:
     // as local as possible to the PHI. To do that, we re-use the location of
     // the old pointer, which necessarily must be in the right position to
     // dominate the PHI.
-    IRBuilderTy PtrBuilder(cast<Instruction>(OldPtr));
+    IRBuilderTy PtrBuilder(OldPtr);
     PtrBuilder.SetNamePrefix(Twine(NewAI.getName()) + "." + Twine(BeginOffset) +
                              ".");