Skip to content

Commit

Permalink
[llvm-readobj] Fix 'Teach readobj to dump .res files', pt 3.
Browse files Browse the repository at this point in the history
Fix (r313790) missing ulittle{}_t error on some buildbots.

llvm-svn=313834
  • Loading branch information
mnbvmar authored and mnbvmar committed Sep 20, 2017
1 parent 5c31b7a commit 0a6c8c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion llvm/tools/llvm-readobj/WindowsResourceDumper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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
Expand Down

0 comments on commit 0a6c8c2

Please sign in to comment.