search for: isinvalid

Displaying 3 results from an estimated 3 matches for "isinvalid".

2010 Oct 13
1
[LLVMdev] EXC_BAD_ACCESS: invalid MemoryBuffer from ContentCache::getBuffer
...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.getInstantiationColumnNumber() uses getDecomposedInstantiation...
2016 Apr 09
0
Verifier in loop pass manager
...the code responsible for it: > > { > PassManagerPrettyStackEntry X(P, *CurrentLoop->getHeader()); > TimeRegion PassTimer(getPassTimer(P)); > > Changed |= P->runOnLoop(CurrentLoop, *this); > } > LoopWasDeleted = CurrentLoop->isInvalid(); > > if (Changed) > dumpPassInfo(P, MODIFICATION_MSG, ON_LOOP_MSG, > LoopWasDeleted ? "<deleted>" > : CurrentLoop->getHeader()->getName()); > dumpPreservedSet(P); > > i...
2014 Aug 27
6
[LLVMdev] Minimizing -gmlt
...nt.html> -------------- next part -------------- diff --git lib/CodeGen/CGDebugInfo.cpp lib/CodeGen/CGDebugInfo.cpp index 0b20f54..e3f23c4 100644 --- lib/CodeGen/CGDebugInfo.cpp +++ lib/CodeGen/CGDebugInfo.cpp @@ -2534,8 +2534,12 @@ void CGDebugInfo::EmitFunctionStart(GlobalDecl GD, if (Loc.isInvalid()) CurLoc = SourceLocation(); } - unsigned LineNo = getLineNumber(Loc); - unsigned ScopeLine = getLineNumber(ScopeLoc); + unsigned LineNo = 0; + unsigned ScopeLine = 0; + if (DebugKind > CodeGenOptions::DebugLineTablesOnly) { + LineNo = getLineNumber(Loc); + ScopeLine = getL...