]> granicus.if.org Git - clang/commit
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)
commitd0a7b563beac4a5fbf6abd1fd3c2215836996045
tree1f0673fdc8e5824bd632a5c2754d3264b990706e
parent74dddd49162382879f70cf035e124e9510e49cb5
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@264940 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ASTDiagnostic.cpp
test/Misc/diag-template-diffing.cpp