[PATCH] D26079: Do not use CppHashInfo if reporting an error after asm file parsed
Paulo Matos via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 28 08:37:23 PDT 2016
pmatos created this revision.
pmatos added reviewers: enderby, t.p.northover, grosbach.
pmatos added a subscriber: llvm-commits.
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
https://reviews.llvm.org/D26079
Files:
include/llvm/Support/SourceMgr.h
lib/MC/MCParser/AsmParser.cpp
lib/Support/SourceMgr.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D26079.76194.patch
Type: text/x-patch
Size: 4302 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161028/b00785a3/attachment.bin>
More information about the llvm-commits
mailing list