Index: lib/MC/MCParser/AsmParser.cpp =================================================================== --- lib/MC/MCParser/AsmParser.cpp +++ lib/MC/MCParser/AsmParser.cpp @@ -3158,11 +3158,8 @@ return false; const unsigned Application = Encoding & 0x70; - if (Application != dwarf::DW_EH_PE_absptr && - Application != dwarf::DW_EH_PE_pcrel) - return false; - - return true; + return Application == dwarf::DW_EH_PE_absptr || + Application == dwarf::DW_EH_PE_pcrel; } /// parseDirectiveCFIPersonalityOrLsda Index: lib/MC/MCParser/ELFAsmParser.cpp =================================================================== --- lib/MC/MCParser/ELFAsmParser.cpp +++ lib/MC/MCParser/ELFAsmParser.cpp @@ -262,10 +262,7 @@ if (PrevLoc.getPointer() + CurSize != getTok().getLoc().getPointer()) break; } - if (Size == 0) - return true; - - return false; + return Size == 0; } static unsigned parseSectionFlags(StringRef flagsStr, bool *UseLastGroup) {