<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Does this still reproduce with lldb compiled from the current state of the git repository (ToT)?<div class=""><br class=""></div><div class="">How do you know that it is LLDB loosing the variable and not clang? Does clang produce a location for the variable when you look at the dwarfdump output?</div><div class=""><br class=""></div><div class="">-- adrian<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Feb 26, 2020, at 3:31 AM, Levo DeLellis via lldb-dev <<a href="mailto:lldb-dev@lists.llvm.org" class="">lldb-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">This feels like a bug to me. Yesterday I was asking what the rules were because it felt like things change and break randomly. Now I have a good example. (link to my email yesterday <a href="http://lists.llvm.org/pipermail/lldb-dev/2020-February/015989.html" class="">http://lists.llvm.org/pipermail/lldb-dev/2020-February/015989.html</a>)</div><div class=""><br class=""></div><div class="">Take this example source file</div><div class=""><br class=""></div>int main() {<br class="">    int dummy = 25;<br class="">    short wtf[dummy];<br class="">    memset(wtf, 0, dummy*sizeof(*wtf));<br class="">    return 0;<br class=""><div class="">}</div><br class="">Now emit the llvm-ir so we can edit it <br class=""><br class="">clang -g test.c -S -emit-llvm<br class=""><br class="">Before line 21 write this line<br class=""><br class="">%z8 = bitcast i16* %8 to i16*<br class=""><br class="">Change the `metadata i16* %8` to `metadata i16* %z8`. Compile it then debug line 4 `clang -g wtf.ll` `lldb-9 ./a.out` `break set -f test.c -l 4` `r` `frame variable`<br class=""><br class="">You'll see the array doesn't show up. If you change %z8 back to %8 it will reappear. Is this a bug or can I not use bitcast when I'm trying to do things with llvm.dbg.declare/addr/value?<br class=""><br class=""></div>
_______________________________________________<br class="">lldb-dev mailing list<br class=""><a href="mailto:lldb-dev@lists.llvm.org" class="">lldb-dev@lists.llvm.org</a><br class="">https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev<br class=""></div></blockquote></div><br class=""></div></body></html>