If parsing has finished, do not allow DiagHandler to rely on last parsed CppHashInfo
Instead recalculate the hash line before the error location.
Fixes PR#30817
Paths
| Differential D26079
Do not use CppHashInfo if reporting an error after asm file parsed AbandonedPublic Authored by pmatos on Oct 28 2016, 8:37 AM.
Details
Summary If parsing has finished, do not allow DiagHandler to rely on last parsed CppHashInfo Fixes PR#30817
Diff Detail Event TimelineComment Actions To the reviewers: For example:
Comment Actions Seem like a step forward. The initial implementation for the search backwards in SourceMgr::FindCppHashLoc() is not great but I suspect it will work well enough. Comment Actions Apologies for leaving this for so long. Are there any further comments?
Revision Contents
Diff 76194 include/llvm/Support/SourceMgr.h
lib/MC/MCParser/AsmParser.cpp
lib/Support/SourceMgr.cpp
|