File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -1214,6 +1214,16 @@ class SILVerifier : public SILVerifierBase<SILVerifier> {
1214
1214
}
1215
1215
}
1216
1216
1217
+ // Disable these checks just on 5.4 when compiler asserts are enabled.
1218
+ //
1219
+ // These just verify some things about debug info that shouldn't stop a program
1220
+ // from not-compiling. When optimizing in certain cases, we found that we were
1221
+ // hitting these on linux platforms since on linux platforms, we ship the
1222
+ // compiler with assertions enabled. So by disabling this we can at least at
1223
+ // the expense of slightly worse debug info when compiling with optimization
1224
+ // eliminate these crashes. Darwin does not ship with compiler-asserts so is
1225
+ // unaffected.
1226
+ #if 0
1217
1227
// Regular locations are allowed on all instructions.
1218
1228
if (LocKind == SILLocation::RegularKind)
1219
1229
return;
@@ -1228,6 +1238,7 @@ class SILVerifier : public SILVerifierBase<SILVerifier> {
1228
1238
if (LocKind == SILLocation::ArtificialUnreachableKind)
1229
1239
require(InstKind == SILInstructionKind::UnreachableInst,
1230
1240
"artificial locations are only allowed on Unreachable instructions");
1241
+ #endif
1231
1242
}
1232
1243
1233
1244
// / Check that the types of this value producer are all legal in the function
You can’t perform that action at this time.
0 commit comments