mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
And lastly rename NewProjection to Projection. This is a NFC. rdar://24520269
This commit is contained in:
@@ -52,7 +52,7 @@ COWViewCFGFunction("view-cfg-before-cow-for", llvm::cl::init(""),
|
||||
/// either refer to the next element (indexed) or a subelement.
|
||||
static SILValue getAccessPath(SILValue V, SmallVectorImpl<unsigned>& Path) {
|
||||
V = stripCasts(V);
|
||||
NewProjectionIndex PI(V);
|
||||
ProjectionIndex PI(V);
|
||||
if (!PI.isValid() || V->getKind() == ValueKind::IndexAddrInst)
|
||||
return V;
|
||||
|
||||
@@ -201,7 +201,7 @@ protected:
|
||||
continue;
|
||||
}
|
||||
|
||||
NewProjectionIndex PI(UseInst);
|
||||
ProjectionIndex PI(UseInst);
|
||||
// Do not form a path from an IndexAddrInst without otherwise
|
||||
// distinguishing it from subelement addressing.
|
||||
if (!PI.isValid() || V->getKind() == ValueKind::IndexAddrInst) {
|
||||
|
||||
Reference in New Issue
Block a user