forked from OSchip/llvm-project
Fix "enumeral and non-enumeral type in conditional expression" warnings. NFCI.
llvm-svn: 370892
This commit is contained in:
parent
e8316372b9
commit
92e13f2eab
|
@ -716,7 +716,7 @@ Expected<DriverConfig> parseObjcopyOptions(ArrayRef<const char *> ArgsArr) {
|
|||
for (auto Arg : InputArgs.filtered(OBJCOPY_add_symbol)) {
|
||||
Expected<NewSymbolInfo> NSI = parseNewSymbolInfo(
|
||||
Arg->getValue(),
|
||||
Config.NewSymbolVisibility.getValueOr(ELF::STV_DEFAULT));
|
||||
Config.NewSymbolVisibility.getValueOr((uint8_t)ELF::STV_DEFAULT));
|
||||
if (!NSI)
|
||||
return NSI.takeError();
|
||||
Config.SymbolsToAdd.push_back(*NSI);
|
||||
|
|
|
@ -756,7 +756,7 @@ Error executeObjcopyOnIHex(const CopyConfig &Config, MemoryBuffer &In,
|
|||
Error executeObjcopyOnRawBinary(const CopyConfig &Config, MemoryBuffer &In,
|
||||
Buffer &Out) {
|
||||
uint8_t NewSymbolVisibility =
|
||||
Config.NewSymbolVisibility.getValueOr(ELF::STV_DEFAULT);
|
||||
Config.NewSymbolVisibility.getValueOr((uint8_t)ELF::STV_DEFAULT);
|
||||
BinaryReader Reader(Config.BinaryArch, &In, NewSymbolVisibility);
|
||||
std::unique_ptr<Object> Obj = Reader.create();
|
||||
|
||||
|
|
Loading…
Reference in New Issue