Fix Clang crash with template type diffing.
authorRichard Trieu <rtrieu@google.com>
Wed, 30 Mar 2016 22:23:00 +0000 (22:23 +0000)
committerRichard Trieu <rtrieu@google.com>
Wed, 30 Mar 2016 22:23:00 +0000 (22:23 +0000)
commita7564d7d66c04804b9104fd0b114e1b5a7972fab
treeead86654239af607a666e70de900f80555c8133a
parent85daf65c5a4a80443fcb2357267d612b244790c3
Fix Clang crash with template type diffing.

Fixes https://llvm.org/bugs/show_bug.cgi?id=27129 which is crash involving type
aliases and template type diffing.  Template arguments for type aliases and
template arguments for the underlying desugared type may not have one-to-one
relations, which could mess us the attempt to get more information from the
desugared type.  For type aliases, ignore the iterator over the desugared type.

llvm-svn: 264940
clang/lib/AST/ASTDiagnostic.cpp
clang/test/Misc/diag-template-diffing.cpp