search for: getinstantiationcolumnnumb

Displaying 1 result from an estimated 1 matches for "getinstantiationcolumnnumb".

2010 Oct 13
1
[LLVMdev] EXC_BAD_ACCESS: invalid MemoryBuffer from ContentCache::getBuffer
...hes in ContentCache::getBuffer. This happens when I'm printing out errors from a compilation run and iterating over TextDiagnosticBuffer returned errors. When checking the errors, I construct a FullSourceLoc and do: int LineNum = SourceLoc.getInstantiationLineNumber(); int ColNum = SourceLoc.getInstantiationColumnNumber(); which return sane values. Checking SourceLoc.isInvalid() always returns false, so I'm confident SourceLoc is valid. However, when I do: const char * bufname = SourceLoc.getManager().getBufferName(SourceLoc, &invalid); I get crashes. The different here I noticed is that SourceLoc.g...