Skip to content

Commit ef08211

Browse files
committed
---
yaml --- r: 347447 b: refs/heads/master c: b6dabeb h: refs/heads/master i: 347445: 1806507 347443: fdad325 347439: df24e56
1 parent dee93c5 commit ef08211

File tree

4 files changed

+3
-19
lines changed

4 files changed

+3
-19
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: e0dcbb6791d4b14e41e18cde94d00ff1932bd0f4
2+
refs/heads/master: b6dabeb746a00de6e860f766bd1d11ff61cf2fad
33
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea

trunk/lib/SILGen/SILGenBuilder.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ SILGenModule &SILGenBuilder::getSILGenModule() const { return SGF.SGM; }
3535
SILGenBuilder::SILGenBuilder(SILGenFunction &SGF)
3636
: SILBuilder(SGF.F), SGF(SGF) {}
3737

38-
SILGenBuilder::SILGenBuilder(SILGenFunction &SGF, SILBasicBlock *insertBB)
39-
: SILBuilder(insertBB), SGF(SGF) {}
40-
4138
SILGenBuilder::SILGenBuilder(SILGenFunction &SGF, SILBasicBlock *insertBB,
4239
SmallVectorImpl<SILInstruction *> *insertedInsts)
4340
: SILBuilder(insertBB, insertedInsts), SGF(SGF) {}

trunk/lib/SILGen/SILGenBuilder.h

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -45,24 +45,11 @@ class SILGenBuilder : public SILBuilder {
4545

4646
public:
4747
SILGenBuilder(SILGenFunction &SGF);
48-
SILGenBuilder(SILGenFunction &SGF, SILBasicBlock *insertBB);
4948
SILGenBuilder(SILGenFunction &SGF, SILBasicBlock *insertBB,
50-
SmallVectorImpl<SILInstruction *> *insertedInsts);
49+
SmallVectorImpl<SILInstruction *> *insertedInsts = nullptr);
5150
SILGenBuilder(SILGenFunction &SGF, SILBasicBlock *insertBB,
5251
SILBasicBlock::iterator insertInst);
5352

54-
SILGenBuilder(SILGenFunction &SGF, SILFunction::iterator insertBB)
55-
: SILGenBuilder(SGF, &*insertBB) {}
56-
SILGenBuilder(SILGenFunction &SGF, SILFunction::iterator insertBB,
57-
SmallVectorImpl<SILInstruction *> *insertedInsts)
58-
: SILGenBuilder(SGF, &*insertBB, insertedInsts) {}
59-
SILGenBuilder(SILGenFunction &SGF, SILFunction::iterator insertBB,
60-
SILInstruction *insertInst)
61-
: SILGenBuilder(SGF, &*insertBB, insertInst->getIterator()) {}
62-
SILGenBuilder(SILGenFunction &SGF, SILFunction::iterator insertBB,
63-
SILBasicBlock::iterator insertInst)
64-
: SILGenBuilder(SGF, &*insertBB, insertInst) {}
65-
6653
// Create a new builder, inheriting the given builder's context and debug
6754
// scope.
6855
SILGenBuilder(SILGenBuilder &builder, SILBasicBlock *insertBB)

trunk/lib/SILGen/SILGenGlobalVariable.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ SILGenFunction::emitGlobalVariableRef(SILLocation loc, VarDecl *var) {
9393
// Global variables can be accessed directly with global_addr. Emit this
9494
// instruction into the prolog of the function so we can memoize/CSE it in
9595
// VarLocs.
96-
auto entryBB = getFunction().begin();
96+
auto *entryBB = &*getFunction().begin();
9797
SILGenBuilder prologueB(*this, entryBB, entryBB->begin());
9898
prologueB.setTrackingList(B.getTrackingList());
9999

0 commit comments

Comments
 (0)