mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Revert "Fix linkage of 'static inline' Clang-imported definitions"
This reverts commit r31763, as it was breaking the bots: Swift SVN r31765
This commit is contained in:
@@ -359,14 +359,10 @@ SILFunction *SILModule::getOrCreateFunction(SILLocation loc,
|
||||
F->setDebugScope(new (*this) SILDebugScope(loc, *F));
|
||||
|
||||
F->setGlobalInit(constant.isGlobal());
|
||||
if (constant.hasDecl()) {
|
||||
if (constant.isForeign && constant.isClangGenerated())
|
||||
F->setForeignBody(HasForeignBody);
|
||||
|
||||
if (constant.hasDecl())
|
||||
if (auto SemanticsA =
|
||||
constant.getDecl()->getAttrs().getAttribute<SemanticsAttr>())
|
||||
F->setSemanticsAttr(SemanticsA->Value);
|
||||
}
|
||||
|
||||
F->setDeclContext(constant.hasDecl() ? constant.getDecl() : nullptr);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user