Skip to content

Commit 54fe8a1

Browse files
committed
NFC: Fix warnings.
1 parent 74d7eac commit 54fe8a1

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

lib/ClangImporter/ClangImporter.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6560,7 +6560,6 @@ CxxRecordSemanticsKind
65606560
CxxRecordSemantics::evaluate(Evaluator &evaluator,
65616561
CxxRecordSemanticsDescriptor desc) const {
65626562
const auto *decl = desc.decl;
6563-
auto &clangSema = desc.ctx.getClangModuleLoader()->getClangSema();
65646563

65656564
if (hasImportAsRefAttr(decl)) {
65666565
return CxxRecordSemanticsKind::Reference;

lib/SILOptimizer/Mandatory/LowerHopToActor.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ namespace {
5050
class LowerHopToActor {
5151
SILFunction *F;
5252
DominanceInfo *Dominance;
53-
SILOptFunctionBuilder &functionBuilder;
5453

5554
/// A map from an actor value to the executor we've derived for it.
5655
llvm::ScopedHashTable<SILValue, SILValue> ExecutorForActor;
@@ -64,11 +63,9 @@ class LowerHopToActor {
6463

6564
public:
6665
LowerHopToActor(SILFunction *f,
67-
SILOptFunctionBuilder &FunctionBuilder,
6866
DominanceInfo *dominance)
6967
: F(f),
70-
Dominance(dominance),
71-
functionBuilder(FunctionBuilder)
68+
Dominance(dominance)
7269
{ }
7370

7471
/// The entry point to the transformation.
@@ -250,8 +247,7 @@ class LowerHopToActorPass : public SILFunctionTransform {
250247
void run() override {
251248
auto fn = getFunction();
252249
auto domTree = getAnalysis<DominanceAnalysis>()->get(fn);
253-
auto functionBuilder = SILOptFunctionBuilder(*this);
254-
LowerHopToActor pass(getFunction(), functionBuilder, domTree);
250+
LowerHopToActor pass(getFunction(), domTree);
255251
if (pass.run())
256252
invalidateAnalysis(SILAnalysis::InvalidationKind::Instructions);
257253
}

0 commit comments

Comments
 (0)