]> granicus.if.org Git - clang/commit
Fix a crasher in Template Diffing.
authorRichard Trieu <rtrieu@google.com>
Wed, 3 Apr 2013 02:11:36 +0000 (02:11 +0000)
committerRichard Trieu <rtrieu@google.com>
Wed, 3 Apr 2013 02:11:36 +0000 (02:11 +0000)
commit625785d370f6c0d8262090b8a2abe3799f72d58d
tree2a4c561a0ce7e36199b2295da7c96f0e711c9871
parent54c63523ec002146328b69bdb912f64144b1f077
Fix a crasher in Template Diffing.

Value depenedent expressions for default arguments cannot be evaluated.
Instead, use the desugared template type to get an argument expression that
can be used.  This is needed for both integer and declaration arguements.

Also, move this common code into a separate function.

Patch by Olivier Goffart!

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