Don't require a strict revision match in LLDB for tagged compilers.

This is a follow-up to 3cc2831608 because the
relaxed checking introduced was being bypassed by the code block that checks for
a tagged compiler.
This commit is contained in:
Adrian Prantl
2022-12-09 11:50:18 -08:00
parent 0b05a1ed2d
commit 006ac8fadc

View File

@@ -360,11 +360,9 @@ static ValidationInfo validateControlBlock(
static const char* forcedDebugRevision =
::getenv("SWIFT_DEBUG_FORCE_SWIFTMODULE_REVISION");
bool isCompilerTagged = forcedDebugRevision ||
version::isCurrentCompilerTagged();
StringRef moduleRevision = blobData;
if (isCompilerTagged) {
if (forcedDebugRevision ||
(requiresRevisionMatch && version::isCurrentCompilerTagged())) {
StringRef compilerRevision = forcedDebugRevision ?
forcedDebugRevision : version::getCurrentCompilerTag();
if (moduleRevision != compilerRevision) {