File tree Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Expand file tree Collapse file tree 2 files changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -6560,7 +6560,6 @@ CxxRecordSemanticsKind
6560
6560
CxxRecordSemantics::evaluate (Evaluator &evaluator,
6561
6561
CxxRecordSemanticsDescriptor desc) const {
6562
6562
const auto *decl = desc.decl ;
6563
- auto &clangSema = desc.ctx .getClangModuleLoader ()->getClangSema ();
6564
6563
6565
6564
if (hasImportAsRefAttr (decl)) {
6566
6565
return CxxRecordSemanticsKind::Reference;
Original file line number Diff line number Diff line change @@ -50,7 +50,6 @@ namespace {
50
50
class LowerHopToActor {
51
51
SILFunction *F;
52
52
DominanceInfo *Dominance;
53
- SILOptFunctionBuilder &functionBuilder;
54
53
55
54
// / A map from an actor value to the executor we've derived for it.
56
55
llvm::ScopedHashTable<SILValue, SILValue> ExecutorForActor;
@@ -64,11 +63,9 @@ class LowerHopToActor {
64
63
65
64
public:
66
65
LowerHopToActor (SILFunction *f,
67
- SILOptFunctionBuilder &FunctionBuilder,
68
66
DominanceInfo *dominance)
69
67
: F(f),
70
- Dominance (dominance),
71
- functionBuilder(FunctionBuilder)
68
+ Dominance (dominance)
72
69
{ }
73
70
74
71
// / The entry point to the transformation.
@@ -250,8 +247,7 @@ class LowerHopToActorPass : public SILFunctionTransform {
250
247
void run () override {
251
248
auto fn = getFunction ();
252
249
auto domTree = getAnalysis<DominanceAnalysis>()->get (fn);
253
- auto functionBuilder = SILOptFunctionBuilder (*this );
254
- LowerHopToActor pass (getFunction (), functionBuilder, domTree);
250
+ LowerHopToActor pass (getFunction (), domTree);
255
251
if (pass.run ())
256
252
invalidateAnalysis (SILAnalysis::InvalidationKind::Instructions);
257
253
}
You can’t perform that action at this time.
0 commit comments