Skip to content

Commit 0d54162

Browse files
author
joaosaffran
committed
clean
1 parent a515e28 commit 0d54162

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

llvm/include/llvm/MC/DXContainerRootSignature.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#include "llvm/BinaryFormat/DXContainer.h"
1010
#include <cstdint>
1111
#include <limits>
12-
#include <variant>
1312

1413
namespace llvm {
1514

llvm/lib/MC/DXContainerRootSignature.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,7 @@ void RootSignatureDesc::write(raw_ostream &OS) const {
9090
}
9191

9292
assert(NumParameters == ParamsOffsets.size());
93-
const RootParameterInfo *H = ParametersContainer.begin();
94-
for (size_t I = 0; I < NumParameters; ++I, H++) {
93+
for (size_t I = 0; I < NumParameters; ++I) {
9594
rewriteOffsetToCurrentByte(BOS, ParamsOffsets[I]);
9695
const auto &[Type, Loc] = ParametersContainer.getTypeAndLocForParameter(I);
9796
switch (Type) {
@@ -104,12 +103,13 @@ void RootSignatureDesc::write(raw_ostream &OS) const {
104103
llvm::endianness::little);
105104
support::endian::write(BOS, Constants.Num32BitValues,
106105
llvm::endianness::little);
107-
} break;
106+
break;
107+
}
108108
case llvm::to_underlying(dxbc::RootParameterType::CBV):
109109
case llvm::to_underlying(dxbc::RootParameterType::SRV):
110-
case llvm::to_underlying(dxbc::RootParameterType::UAV):{
110+
case llvm::to_underlying(dxbc::RootParameterType::UAV): {
111111
const dxbc::RTS0::v2::RootDescriptor &Descriptor =
112-
ParametersContainer.getRootDescriptor(Loc);
112+
ParametersContainer.getRootDescriptor(Loc);
113113

114114
support::endian::write(BOS, Descriptor.ShaderRegister,
115115
llvm::endianness::little);

0 commit comments

Comments
 (0)