Skip to content

Commit bacef19

Browse files
committed
IRGen: Add auto_dynamic_replacements_some entries to llvm.used
The new pass manager pipeline will otherwise remove them and tests will fail
1 parent 0fdba62 commit bacef19

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/IRGen/GenDecl.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1905,6 +1905,7 @@ void IRGenerator::emitDynamicReplacements() {
19051905
"\x01l_auto_dynamic_replacements_some", IGM.getPointerAlignment(),
19061906
/*isConstant*/ true, llvm::GlobalValue::PrivateLinkage);
19071907
autoReplVar2->setSection(getDynamicReplacementSomeSection(IGM));
1908+
IGM.addUsedGlobal(autoReplVar2);
19081909
}
19091910

19101911
void IRGenerator::emitEagerClassInitialization() {

0 commit comments

Comments
 (0)