]> granicus.if.org Git - clang/commit
Avoid crash when dumping LocInfoType.
authorSerge Pavlov <sepavloff@gmail.com>
Mon, 28 Dec 2015 17:19:12 +0000 (17:19 +0000)
committerSerge Pavlov <sepavloff@gmail.com>
Mon, 28 Dec 2015 17:19:12 +0000 (17:19 +0000)
commit6d187518c85f9d7ed612c61acc3d969ca2d0ce59
tree14b89fa75b9cbb941ab49d37e3ed83c81b572c45
parent333be359b226a55a95008649c1f81569b26fa923
Avoid crash when dumping LocInfoType.

LocInfoType is a helper type used internally inside Sema and Parser, it
does not exist in valid AST. LocInfoType uses code value outside the
range of valid Type codes, as a result, dumping such type causes error.
The fix allows correct dumping LocInfoType.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@256503 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ASTDumper.cpp