[Lldb-commits] [lldb] r250426 - Fix broken assert in DWARFDIE.cpp on OS X
Todd Fiala via lldb-commits
lldb-commits at lists.llvm.org
Thu Oct 15 09:36:00 PDT 2015
Author: tfiala
Date: Thu Oct 15 11:35:59 2015
New Revision: 250426
URL: http://llvm.org/viewvc/llvm-project?rev=250426&view=rev
Log:
Fix broken assert in DWARFDIE.cpp on OS X
See:
http://reviews.llvm.org/D13777
Modified:
lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDIE.cpp
Modified: lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDIE.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDIE.cpp?rev=250426&r1=250425&r2=250426&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDIE.cpp (original)
+++ lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDIE.cpp Thu Oct 15 11:35:59 2015
@@ -185,7 +185,7 @@ DWARFDIE::GetID () const
if (m_cu)
{
- lldb::user_id_t cu_id = ((lldb::user_id_t)m_cu->GetID())<<32;
+ lldb::user_id_t cu_id = m_cu->GetID()&0xffffffff00000000ull;
assert ((id&0xffffffff00000000ull) == 0 ||
(cu_id&0xffffffff00000000ll) == 0 ||
(id&0xffffffff00000000ull) == (cu_id&0xffffffff00000000ll));
More information about the lldb-commits
mailing list