We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c69bec commit 9779806Copy full SHA for 9779806
lib/Serialization/ModuleFileSharedCore.cpp
@@ -334,6 +334,12 @@ static ValidationInfo validateControlBlock(
334
LLVM_FALLTHROUGH;
335
case 3:
336
result.shortVersion = blobData.slice(0, scratch[2]);
337
+
338
+ // If the format version doesn't match, give up after also getting the
339
+ // compiler version. This provides better diagnostics.
340
+ if (result.status != Status::Valid)
341
+ return result;
342
343
344
case 2:
345
case 1:
0 commit comments