projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f60fb8
)
OldPtr is llvm::Instruction. Remove unneeded cast<>.
author
Jakub Staszak
<kubastaszak@gmail.com>
Mon, 22 Jul 2013 22:10:43 +0000
(22:10 +0000)
committer
Jakub 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
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/SROA.cpp
b/lib/Transforms/Scalar/SROA.cpp
index 021859366590849d3fff9b6923b07db2cfa1965f..10ae15334ee087017cd88ba99f5a7a40905f2513 100644
(file)
--- a/
lib/Transforms/Scalar/SROA.cpp
+++ b/
lib/Transforms/Scalar/SROA.cpp
@@
-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) +
".");