A debug assert is incorrectly triggered when "LWN_Get_Parent" is traversed to
the "FUNC_ENTRY" node which has no parent.
My fix here is to stop at the "FUNC_ENTRY".
Index: be/lno/cond.cxx
===================================================================
--- be/lno/cond.cxx (revision 1323)
+++ be/lno/cond.cxx (working copy)
@@ -173,7 +173,9 @@
#ifdef Is_True_On
if (TY_kind(ST_type(WN_st(wn))) == KIND_SCALAR) {
WN *tmp = wn;
- while (tmp && WN_opcode(tmp) != OPC_IO) tmp = LWN_Get_Parent(tmp);
+ while (tmp && (WN_opcode(tmp)!= OPC_IO) && (WN_opcode(tmp) !=
OPC_FUNC_ENTRY))
+ tmp = LWN_Get_Parent(tmp);
+
Is_True(tmp, ("Missing defs for %s (wn=%ld=0x%lx)",
SYMBOL(wn).Name(), wn, wn));
}
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
Open64-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/open64-devel