Skip to content

Commit 1f31957

Browse files
author
joaosaffran
committed
addressing comments
1 parent 1b3e10a commit 1f31957

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

llvm/include/llvm/Object/DXContainer.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include "llvm/TargetParser/Triple.h"
2626
#include <array>
2727
#include <cstddef>
28+
#include <cstdint>
2829
#include <variant>
2930

3031
namespace llvm {
@@ -122,8 +123,10 @@ namespace DirectX {
122123
struct RootParameterView {
123124
const dxbc::RootParameterHeader &Header;
124125
StringRef ParamData;
126+
uint32_t Version;
127+
125128
RootParameterView(uint32_t V, const dxbc::RootParameterHeader &H, StringRef P)
126-
: Header(H), ParamData(P) {}
129+
: Header(H), ParamData(P), Version(V) {}
127130

128131
template <typename T> Expected<T> readParameter() {
129132
if (sizeof(T) != ParamData.size())

0 commit comments

Comments
 (0)