Skip to content

Commit 4dccf76

Browse files
committed
#if 0 unreachable code to disable warning
1 parent b79a383 commit 4dccf76

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/IRGen/IRGenModule.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1871,6 +1871,7 @@ bool IRGenModule::canMakeStaticObjectsReadOnly() {
18711871
// rdar://101126543
18721872
return false;
18731873

1874+
#if 0
18741875
if (getOptions().DisableReadonlyStaticObjects)
18751876
return false;
18761877

@@ -1881,6 +1882,7 @@ bool IRGenModule::canMakeStaticObjectsReadOnly() {
18811882

18821883
return getAvailabilityContext().isContainedIn(
18831884
Context.getImmortalRefCountSymbolsAvailability());
1885+
#endif
18841886
}
18851887

18861888
void IRGenerator::addGenModule(SourceFile *SF, IRGenModule *IGM) {

0 commit comments

Comments
 (0)