]> granicus.if.org Git - clang/commit
Fix crash on invalid in template type diffing.
authorRichard Trieu <rtrieu@google.com>
Tue, 7 May 2013 21:36:24 +0000 (21:36 +0000)
committerRichard Trieu <rtrieu@google.com>
Tue, 7 May 2013 21:36:24 +0000 (21:36 +0000)
commit28b34d86baca3282704de364b98a123baf426799
treeef2806a6620811869c1418ab8e6d0ad1e7c15367
parentbe0b207c4916f823497d31cbf5083efb4e374163
Fix crash on invalid in template type diffing.

This is a fix for PR15895, where Clang will crash when trying to print a
template diff and the template uses an address of operator.  This resulted
from expecting a DeclRefExpr when the Expr could have also been
UnaryOperator->DeclRefExpr.

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