mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-04 17:56:53 +00:00
[llvm-readobj] Fix 'Teach readobj to dump .res files', pt 3.
Fix (r313790) missing ulittle{}_t error on some buildbots. llvm-svn: 313834
This commit is contained in:
parent
0c12f89e99
commit
91c480c22e
@ -15,6 +15,7 @@
|
||||
#include "Error.h"
|
||||
#include "llvm-readobj.h"
|
||||
#include "llvm/Object/WindowsResource.h"
|
||||
#include "llvm/Support/ConvertUTF.h"
|
||||
#include "llvm/Support/ScopedPrinter.h"
|
||||
|
||||
namespace llvm {
|
||||
@ -28,7 +29,7 @@ std::string stripUTF16(const ArrayRef<UTF16> &UTF16Str) {
|
||||
for (UTF16 Ch : UTF16Str) {
|
||||
// UTF16Str will have swapped byte order in case of big-endian machines.
|
||||
// Swap it back in such a case.
|
||||
ulittle16_t ChValue = Ch;
|
||||
support::ulittle16_t ChValue(Ch);
|
||||
if (ChValue <= 0xFF)
|
||||
Result += ChValue;
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user