[llvm] r292065 - Fix un-initialized error introduced by r291959.

Daniel Jasper via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 15 08:42:37 PST 2017


Author: djasper
Date: Sun Jan 15 10:42:36 2017
New Revision: 292065

URL: http://llvm.org/viewvc/llvm-project?rev=292065&view=rev
Log:
Fix un-initialized error introduced by r291959.

This is uncovered when running tools/dsymutil/X86/empty_range.s.test
with ASAN. Haven't investigate yet, whether that means there is an ODR
violation in that test.

Modified:
    llvm/trunk/tools/dsymutil/DwarfLinker.cpp

Modified: llvm/trunk/tools/dsymutil/DwarfLinker.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/dsymutil/DwarfLinker.cpp?rev=292065&r1=292064&r2=292065&view=diff
==============================================================================
--- llvm/trunk/tools/dsymutil/DwarfLinker.cpp (original)
+++ llvm/trunk/tools/dsymutil/DwarfLinker.cpp Sun Jan 15 10:42:36 2017
@@ -211,6 +211,8 @@ public:
                              *Lang == dwarf::DW_LANG_C_plus_plus_11 ||
                              *Lang == dwarf::DW_LANG_C_plus_plus_14 ||
                              *Lang == dwarf::DW_LANG_ObjC_plus_plus);
+    else
+      HasODR = false;
   }
 
   DWARFUnit &getOrigUnit() const { return OrigUnit; }




More information about the llvm-commits mailing list