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 74f7226 commit 69f581aCopy full SHA for 69f581a
llvm/include/llvm/BinaryFormat/DXContainer.h
@@ -557,10 +557,11 @@ struct RootSignatureValidations {
557
}
558
559
static Expected<uint32_t> validateVersion(uint32_t Version) {
560
- if (Version < 1 || Version > 2)
561
- return llvm::make_error<BinaryStreamError>(
562
- "Invalid Root Signature Version");
563
- return Version;
+ if (Version == 1 || Version == 2)
+ return Version;
+
+ return llvm::make_error<BinaryStreamError>(
564
+ "Invalid Root Signature Version");
565
566
};
567
0 commit comments