Skip to content

Commit 71817e4

Browse files
committed
---
yaml --- r: 349196 b: refs/heads/master-next c: 851d9f4 h: refs/heads/master
1 parent 4305590 commit 71817e4

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: 3574c513bbc5578dd9346b4ea9ab5995c5927bb5
3-
refs/heads/master-next: 27fe8493aa00e21544c10ea5e18223d4ac2a0a9e
3+
refs/heads/master-next: 851d9f44d0d8b338340aa5afd1ae56f111a51e8c
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
66
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-b: 66d897bfcf64a82cb9a87f5e663d889189d06d07

branches/master-next/include/swift/SIL/Projection.h

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,12 @@
2222
#ifndef SWIFT_SIL_PROJECTION_H
2323
#define SWIFT_SIL_PROJECTION_H
2424

25+
#include "swift/AST/TypeAlignments.h"
2526
#include "swift/Basic/NullablePtr.h"
2627
#include "swift/Basic/PointerIntEnum.h"
27-
#include "swift/AST/TypeAlignments.h"
28-
#include "swift/SIL/SILValue.h"
28+
#include "swift/Basic/STLExtras.h"
2929
#include "swift/SIL/SILInstruction.h"
30+
#include "swift/SIL/SILValue.h"
3031
#include "swift/SILOptimizer/Analysis/ARCAnalysis.h"
3132
#include "swift/SILOptimizer/Analysis/RCIdentityAnalysis.h"
3233
#include "llvm/ADT/Hashing.h"
@@ -751,18 +752,18 @@ class ProjectionTreeNode {
751752
~ProjectionTreeNode() = default;
752753
ProjectionTreeNode(const ProjectionTreeNode &) = default;
753754

754-
llvm::ArrayRef<unsigned> getChildProjections() {
755-
return llvm::makeArrayRef(ChildProjections);
755+
bool isLeaf() const { return ChildProjections.empty(); }
756+
757+
ArrayRef<unsigned> getChildProjections() const {
758+
return llvm::makeArrayRef(ChildProjections);
756759
}
757760

758-
llvm::Optional<Projection> &getProjection() { return Proj; }
761+
Optional<Projection> &getProjection() { return Proj; }
759762

760763
const ArrayRef<Operand *> getNonProjUsers() const {
761764
return llvm::makeArrayRef(NonProjUsers);
762765
}
763766

764-
bool isLeaf() const { return ChildProjections.empty(); }
765-
766767
SILType getType() const { return NodeType; }
767768

768769
bool isRoot() const {

0 commit comments

Comments
 (0)