Skip to content

Commit 2d255e7

Browse files
committed
[cxx-interop][SwiftCompilerSources] Remove a workaround
The definition of `~BasicCalleeAnalysis` can now be inlined. rdar://127152872 / resolves #64502
1 parent d812e11 commit 2d255e7

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

include/swift/SILOptimizer/Analysis/BasicCalleeAnalysis.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class BasicCalleeAnalysis : public SILAnalysis {
3737
BasicCalleeAnalysis(SILModule *M)
3838
: SILAnalysis(SILAnalysisKind::BasicCallee), M(*M), Cache(nullptr) {}
3939

40-
~BasicCalleeAnalysis();
40+
~BasicCalleeAnalysis() {}
4141

4242
static bool classof(const SILAnalysis *S) {
4343
return S->getKind() == SILAnalysisKind::BasicCallee;

lib/SILOptimizer/Analysis/BasicCalleeAnalysis.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@
3030

3131
using namespace swift;
3232

33-
// TODO: can't be inlined to work around https://github.com/apple/swift/issues/64502
34-
BasicCalleeAnalysis::~BasicCalleeAnalysis() {
35-
}
36-
3733
void BasicCalleeAnalysis::dump() const {
3834
print(llvm::errs());
3935
}

0 commit comments

Comments
 (0)