<div dir="ltr">Hi,<div><br></div><div>I am trying to solve a problem seems to be Windows only. Here is the code that works on Linux, but asserts on Windows:</div><div><br></div><div><div>      SourceLocation s = sm.translateLineCol(sm.getMainFileID(), line, 1);</div><div>      rewriter.InsertTextBefore(s, repl);</div><div><br></div><div>The debug version on Windows shows this:</div><div><br></div><div><div>Assertion failed: Index < LoadedSLocEntryTable.size() && "Invalid index", file llvm_clang\v3.5\src\tools\clang\include\clang/Basic/SourceManager.h, line 1487</div></div><div><br></div><div>Just wondering if anyone happens to know anything.</div><div><br></div><div>I will report back when I get a clue</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">- Welson<br><div><div><div><br></div></div></div></div></div>
</div></div>