forked from OSchip/llvm-project
[mach-o] keep Windows library happy.
&v[v.size()] may be invalid C++. llvm-svn: 220115
This commit is contained in:
parent
0f5735965d
commit
24b7dd431e
|
@ -137,7 +137,7 @@ public:
|
|||
_contents.resize(_commonEncodingsOffset +
|
||||
commonEncodings.size() * sizeof(uint32_t));
|
||||
int32_t *commonEncodingsArea =
|
||||
(int32_t *)&_contents[_commonEncodingsOffset];
|
||||
reinterpret_cast<int32_t *>(_contents.data() + _commonEncodingsOffset);
|
||||
|
||||
for (uint32_t encoding : commonEncodings)
|
||||
write32(*commonEncodingsArea++, _swap, encoding);
|
||||
|
|
Loading…
Reference in New Issue