Skip to content

Commit 443447d

Browse files
committed
Per CCC feedback, just remove this code rather than #if 0 it out.
NFC.
1 parent 17deae8 commit 443447d

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

lib/SIL/Verifier/SILVerifier.cpp

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,32 +1213,6 @@ class SILVerifier : public SILVerifierBase<SILVerifier> {
12131213
DebugVars[ArgNo] = VarInfo->Name;
12141214
}
12151215
}
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
1227-
// Regular locations are allowed on all instructions.
1228-
if (LocKind == SILLocation::RegularKind)
1229-
return;
1230-
1231-
if (LocKind == SILLocation::ReturnKind ||
1232-
LocKind == SILLocation::ImplicitReturnKind)
1233-
require(InstKind == SILInstructionKind::BranchInst ||
1234-
InstKind == SILInstructionKind::ReturnInst ||
1235-
InstKind == SILInstructionKind::UnreachableInst,
1236-
"return locations are only allowed on branch and return instructions");
1237-
1238-
if (LocKind == SILLocation::ArtificialUnreachableKind)
1239-
require(InstKind == SILInstructionKind::UnreachableInst,
1240-
"artificial locations are only allowed on Unreachable instructions");
1241-
#endif
12421216
}
12431217

12441218
/// Check that the types of this value producer are all legal in the function

0 commit comments

Comments
 (0)