forked from OSchip/llvm-project
Fixed the gcc 'enumeral and non-enumeral type in conditional expression [-Werror=extra]' warning introduced by r320750
llvm-svn: 320868
This commit is contained in:
parent
058d3cec15
commit
6532b3b9d2
|
@ -188,7 +188,7 @@ ObjectFactory::createImportDescriptor(std::vector<uint8_t> &Buffer) {
|
|||
(ImportName.size() + 1)),
|
||||
u32(NumberOfSymbols),
|
||||
u16(0),
|
||||
u16(is32bit(Machine) ? IMAGE_FILE_32BIT_MACHINE : 0),
|
||||
u16(is32bit(Machine) ? IMAGE_FILE_32BIT_MACHINE : C_Invalid),
|
||||
};
|
||||
append(Buffer, Header);
|
||||
|
||||
|
@ -324,7 +324,7 @@ ObjectFactory::createNullImportDescriptor(std::vector<uint8_t> &Buffer) {
|
|||
sizeof(coff_import_directory_table_entry)),
|
||||
u32(NumberOfSymbols),
|
||||
u16(0),
|
||||
u16(is32bit(Machine) ? IMAGE_FILE_32BIT_MACHINE : 0),
|
||||
u16(is32bit(Machine) ? IMAGE_FILE_32BIT_MACHINE : C_Invalid),
|
||||
};
|
||||
append(Buffer, Header);
|
||||
|
||||
|
@ -387,7 +387,7 @@ NewArchiveMember ObjectFactory::createNullThunk(std::vector<uint8_t> &Buffer) {
|
|||
VASize),
|
||||
u32(NumberOfSymbols),
|
||||
u16(0),
|
||||
u16(is32bit(Machine) ? IMAGE_FILE_32BIT_MACHINE : 0),
|
||||
u16(is32bit(Machine) ? IMAGE_FILE_32BIT_MACHINE : C_Invalid),
|
||||
};
|
||||
append(Buffer, Header);
|
||||
|
||||
|
|
Loading…
Reference in New Issue