[llvm] r186880 - OldPtr is llvm::Instruction. Remove unneeded cast<>.
Jakub Staszak
kubastaszak at gmail.com
Mon Jul 22 15:10:43 PDT 2013
Author: kuba
Date: Mon Jul 22 17:10:43 2013
New Revision: 186880
URL: http://llvm.org/viewvc/llvm-project?rev=186880&view=rev
Log:
OldPtr is llvm::Instruction. Remove unneeded cast<>.
Modified:
llvm/trunk/lib/Transforms/Scalar/SROA.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/SROA.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/SROA.cpp?rev=186880&r1=186879&r2=186880&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/SROA.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/SROA.cpp Mon Jul 22 17:10:43 2013
@@ -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) +
".");
More information about the llvm-commits
mailing list