summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3f60fb8)
raw | patch | inline | side by side (parent: 3f60fb8)
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 |
index 021859366590849d3fff9b6923b07db2cfa1965f..10ae15334ee087017cd88ba99f5a7a40905f2513 100644 (file)
// 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) +
".");