Displaying 1 result from an estimated 1 matches for "getdecomposedinstantiationloc".
2010 Oct 13
1
[LLVMdev] EXC_BAD_ACCESS: invalid MemoryBuffer from ContentCache::getBuffer
...ecking 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.getInstantiationColumnNumber() uses
getDecomposedInstantiationLoc(Loc) to grab the FileID while getBuffer
name uses getFileID(Loc), which in the case of the crash return
different values for FileID.
First, is the way I'm attempting to get the name of the source
location valid? Or, is there something I should be checking related
to the SourceLoc so that thi...