diff options
author | joaosaffran <joao.saffran@microsoft.com> | 2025-05-29 17:36:57 +0000 |
---|---|---|
committer | joaosaffran <joao.saffran@microsoft.com> | 2025-05-29 17:36:57 +0000 |
commit | 08c5207a9452ef08dc0bbe4d5c9403b3934a987b (patch) | |
tree | 8eb901dcb22df630d15c63c682024ab6a63bf82d | |
parent | a585134d547f6079c0c00a4f6d1c4b52703b8989 (diff) | |
download | llvm-users/joaosaffran/138315.zip llvm-users/joaosaffran/138315.tar.gz llvm-users/joaosaffran/138315.tar.bz2 |
fix format?users/joaosaffran/138315
-rw-r--r-- | llvm/include/llvm/Object/DXContainer.h | 2 | ||||
-rw-r--r-- | llvm/include/llvm/ObjectYAML/DXContainerYAML.h | 3 | ||||
-rw-r--r-- | llvm/lib/ObjectYAML/DXContainerEmitter.cpp | 2 |
3 files changed, 2 insertions, 5 deletions
diff --git a/llvm/include/llvm/Object/DXContainer.h b/llvm/include/llvm/Object/DXContainer.h index 77cd2df..ef981a1 100644 --- a/llvm/include/llvm/Object/DXContainer.h +++ b/llvm/include/llvm/Object/DXContainer.h @@ -294,8 +294,6 @@ public: DataSize += 2 * sizeof(uint32_t); break; } - - if (Header.ParameterOffset + DataSize > EndOfSectionByte) return parseFailed("Reading structure out of file bounds"); diff --git a/llvm/include/llvm/ObjectYAML/DXContainerYAML.h b/llvm/include/llvm/ObjectYAML/DXContainerYAML.h index d9770d1..33327e5 100644 --- a/llvm/include/llvm/ObjectYAML/DXContainerYAML.h +++ b/llvm/include/llvm/ObjectYAML/DXContainerYAML.h @@ -154,8 +154,7 @@ struct RootParameterYamlDesc { return getOrInsertImpl(ParamDesc, Descriptors); } - DescriptorTableYaml & - getOrInsertTable(RootParameterLocationYaml &ParamDesc) { + DescriptorTableYaml &getOrInsertTable(RootParameterLocationYaml &ParamDesc) { return getOrInsertImpl(ParamDesc, Tables); } diff --git a/llvm/lib/ObjectYAML/DXContainerEmitter.cpp b/llvm/lib/ObjectYAML/DXContainerEmitter.cpp index 7211666..233a79e 100644 --- a/llvm/lib/ObjectYAML/DXContainerEmitter.cpp +++ b/llvm/lib/ObjectYAML/DXContainerEmitter.cpp @@ -305,7 +305,7 @@ void DXContainerWriter::writeParts(raw_ostream &OS) { } case llvm::to_underlying(dxbc::RootParameterType::DescriptorTable): { const DXContainerYAML::DescriptorTableYaml &TableYaml = - P.RootSignature->Parameters.getOrInsertTable(L); + P.RootSignature->Parameters.getOrInsertTable(L); mcdxbc::DescriptorTable Table; for (const auto &R : TableYaml.Ranges) { |