Skip to content

Commit e8fbfce

Browse files
author
joaosaffran
committed
clean up
1 parent 1f31957 commit e8fbfce

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

llvm/include/llvm/Object/DXContainer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,11 @@ struct RootParameterView {
129129
: Header(H), ParamData(P), Version(V) {}
130130

131131
template <typename T> Expected<T> readParameter() {
132+
T Struct;
132133
if (sizeof(T) != ParamData.size())
133134
return make_error<GenericBinaryError>(
134135
"Reading structure out of file bounds", object_error::parse_failed);
135136

136-
T Struct;
137137
memcpy(&Struct, ParamData.data(), sizeof(T));
138138
// DXContainer is always little endian
139139
if (sys::IsBigEndianHost)

llvm/include/llvm/ObjectYAML/DXContainerYAML.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#include "llvm/ObjectYAML/YAML.h"
2222
#include "llvm/Support/YAMLTraits.h"
2323
#include <array>
24-
#include <cstdint>
2524
#include <optional>
2625
#include <string>
2726
#include <vector>

llvm/lib/ObjectYAML/DXContainerYAML.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
#include "llvm/ADT/STLForwardCompat.h"
1616
#include "llvm/ADT/ScopeExit.h"
1717
#include "llvm/BinaryFormat/DXContainer.h"
18-
#include "llvm/Object/DXContainer.h"
1918
#include "llvm/Support/Error.h"
2019
#include "llvm/Support/ScopedPrinter.h"
2120
#include <cstdint>

0 commit comments

Comments
 (0)