<div dir="ltr"><div><div>I would imagine that the best way is using -debug. You'll know what it was doing at the time and can make sense of what is happening. Of course, you could just dump the instruction that is causing the assertion (either in the debugger or directly in the code and rebuild).<br><br></div>But more than likely, I assume your code does something like `MI.getDebugVariable()` without checking `isDebugValue()` for the `MachineInstr` first (i.e. making an implicit assumption that what you're looking at is a DebugValue).<br><br></div>Although you also seem to be on a very old version of LLVM, so I'm not sure if what I just said applies.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 29, 2017 at 11:24 PM, Rodney M. Bates via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">llc is giving me this assertion failure:<br>
<br>
rodney@allegheny:~/proj/m3/git<wbr>/cm3/m3-sys/m3tests/src/p0/p00<wbr>1/AMD64_LINUX$ llc -disable-fp-elim -filetype=asmĀ  -relocation-model=pic Main.mb.asm -o Main_m.s<br>
llc: /home/rodney/proj/llvm/llvm-3.<wbr>6.1/llvm-3.6.1.src/include/llv<wbr>m/CodeGen/MachineInstr.h:252: llvm::DIVariable llvm::MachineInstr::getDebugVa<wbr>riable() const: Assertion `Var.Verify() && "not a DIVariable"' failed.<br>
<br>
How can I find out the place in the input file Main.mb.asm that is provoking this?<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Rodney Bates<br>
<a href="mailto:rodney.m.bates@acm.org" target="_blank">rodney.m.bates@acm.org</a><br>
______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
</font></span></blockquote></div><br></div>