File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1313#include " llvm/BinaryFormat/COFF.h"
1414#include " llvm/Object/COFF.h"
1515#include " llvm/Support/CRC.h"
16- #include " llvm/Support/Errc.h"
1716#include " llvm/Support/Endian.h"
17+ #include " llvm/Support/Errc.h"
1818#include " llvm/Support/ErrorHandling.h"
1919#include < cstddef>
2020#include < cstdint>
@@ -136,8 +136,9 @@ Error COFFWriter::finalizeCFGuardContents() {
136136 continue ;
137137
138138 // Create updated content
139- ArrayRef<support::ulittle32_t > Ids (reinterpret_cast <const support::ulittle32_t *>(RawIds.data ()),
140- RawIds.size () / 4 );
139+ ArrayRef<support::ulittle32_t > Ids (
140+ reinterpret_cast <const support::ulittle32_t *>(RawIds.data ()),
141+ RawIds.size () / 4 );
141142 std::vector<support::ulittle32_t > NewIds;
142143 for (auto Id : Ids)
143144 NewIds.push_back (support::ulittle32_t (SymIdMap[Id]));
@@ -150,7 +151,7 @@ Error COFFWriter::finalizeCFGuardContents() {
150151 reinterpret_cast <coff_aux_section_definition *>(Sym.AuxData [0 ].Opaque );
151152 SD->CheckSum = JC.getCRC ();
152153 // Set new content
153- Sec->setOwnedContents (NewRawIds);
154+ Sec->setOwnedContents (NewRawIds. vec () );
154155 }
155156 return Error::success ();
156157}
You can’t perform that action at this time.
0 commit comments