Skip to content

Commit 4444ff9

Browse files
committed
[IRGen] Mark protocol conformance descriptors as true const.
1 parent c1e4420 commit 4444ff9

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

lib/IRGen/GenMeta.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,6 @@ namespace {
603603
auto var = cast<llvm::GlobalVariable>(addr);
604604

605605
var->setConstant(true);
606-
disableAddressSanitizer(IGM, var);
607606
IGM.setTrueConstGlobal(var);
608607
}
609608

lib/IRGen/GenProto.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2240,6 +2240,7 @@ void IRGenModule::emitProtocolConformance(
22402240
getAddrOfProtocolConformanceDescriptor(conformance,
22412241
init.finishAndCreateFuture()));
22422242
var->setConstant(true);
2243+
setTrueConstGlobal(var);
22432244
}
22442245

22452246
void IRGenModule::ensureRelativeSymbolCollocation(SILWitnessTable &wt) {

0 commit comments

Comments
 (0)