X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=lib%2FDebugInfo%2FDWARF%2FDWARFFormValue.cpp;h=53a676efaf3f78a34e6067a3705ddc67ca8d6498;hp=75ca7622139db256437adf2d2d8f505d8856e376;hb=675da70da575907f8b027531852d8e5e7ef12cec;hpb=8ffbb68a8645ea377904f67a6ec33a2f544c02e0 diff --git a/lib/DebugInfo/DWARF/DWARFFormValue.cpp b/lib/DebugInfo/DWARF/DWARFFormValue.cpp index 75ca7622139..53a676efaf3 100644 --- a/lib/DebugInfo/DWARF/DWARFFormValue.cpp +++ b/lib/DebugInfo/DWARF/DWARFFormValue.cpp @@ -127,10 +127,8 @@ bool DWARFFormValue::isFormClass(DWARFFormValue::FormClass FC) const { // In DWARF3 DW_FORM_data4 and DW_FORM_data8 served also as a section offset. // Don't check for DWARF version here, as some producers may still do this // by mistake. - if ((Form == DW_FORM_data4 || Form == DW_FORM_data8) && - FC == FC_SectionOffset) - return true; - return false; + return (Form == DW_FORM_data4 || Form == DW_FORM_data8) && + FC == FC_SectionOffset; } bool DWARFFormValue::extractValue(DataExtractor data, uint32_t *offset_ptr,