<div dir="ltr">Any suggestions ? <div>thanks,</div><div>vbalu<br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 16, 2017 at 12:51 PM, vignesh balu via Phabricator <span dir="ltr"><<a href="mailto:reviews@reviews.llvm.org" target="_blank">reviews@reviews.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">vbalu added a comment.<br>
<span class=""><br>
In <a href="https://reviews.llvm.org/D32732#753348" rel="noreferrer" target="_blank">https://reviews.llvm.org/<wbr>D32732#753348</a>, @jingham wrote:<br>
<br>
> That looks like the right way to do it.  What was your thinking behind returning null rather than the partial list of variables already parsed if can_create is false?  That doesn't seem like what somebody who is bothering to pass in can_create false intends.<br>
<br>
<br>
</span>The issue is use of m_variables when it is partially Parsed. when a function looking of a global variable count it just call the GetVariableList with "can_create=false" which will return the partially parsed m_variabe leads to wrong count.<br>
"can_create" avoid the recursion while parsing the variables and to get the parsed global variable list to the callee. So i thought returning NULL should be wise instead of sending partially parsed list.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
Repository:<br>
  rL LLVM<br>
<br>
<a href="https://reviews.llvm.org/D32732" rel="noreferrer" target="_blank">https://reviews.llvm.org/<wbr>D32732</a><br>
<br>
<br>
<br>
</div></div></blockquote></div><br></div></div></div>